Skip to content

Conversation

chenhao7253886
Copy link
Contributor

…lure when it contains subquery

} else if (dstType != srcType) {
CastExpr castExpr = (CastExpr)expr.castTo(slotDesc.getType());
return castExpr;
if (dstType != srcType) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you delete origin stringType check

stringType check is used to make work with char and varchar, do you have test your path with char and varchar type with convert function which return is not these type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't produce CastExpr, when source and target are char or varchar, they are all treated as String in CastFunction. Expr has handled it in member function 'castTo'. And i have tested cases that table's attribute types contain char or varchar.

@imay
Copy link
Contributor

imay commented Nov 28, 2018

@chenhao7253886
you'd better to limit your commit subject to 50 characters.

@chenhao7253886 chenhao7253886 changed the title Fix stream load failure when target table contains HLL and insert fai… Fix stream load failure and insert failure in regression testing. Nov 28, 2018
@imay imay merged commit 5694bcb into apache:master Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants