Taras Bobrovytsky has posted comments on this change. Change subject: IMPALA-3155: Disable implicit casting of CHAR to STRING in CASE statements ......................................................................
Patch Set 1: (1 comment) http://gerrit.cloudera.org:8080/#/c/2762/1/fe/src/main/java/com/cloudera/impala/analysis/CaseExpr.java File fe/src/main/java/com/cloudera/impala/analysis/CaseExpr.java: Line 247: if (children_.get(0).getType().isScalarType(PrimitiveType.CHAR)) { > Not sure why this works, but you need to analyze() an expr before you can c The way it was implemented before (in castChildCharsToStrings) is in the same order as it is currently implemented (it was cast before being analyzed). Was that incorrect? -- To view, visit http://gerrit.cloudera.org:8080/2762 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I4aebac6849898693570bc3164fff40786c215358 Gerrit-PatchSet: 1 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Taras Bobrovytsky <[email protected]> Gerrit-Reviewer: Alex Behm <[email protected]> Gerrit-Reviewer: Taras Bobrovytsky <[email protected]> Gerrit-HasComments: Yes
