Gabor Kaszab has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/14665 )

Change subject: IMPALA-9131: Use single quotes around FORMAT clause in CAST
......................................................................


Patch Set 4:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/14665/3/fe/src/main/java/org/apache/impala/analysis/CastExpr.java
File fe/src/main/java/org/apache/impala/analysis/CastExpr.java:

http://gerrit.cloudera.org:8080/#/c/14665/3/fe/src/main/java/org/apache/impala/analysis/CastExpr.java@197
PS3, Line 197:  public String getCastFormatWithEscapedSingleQuotes() {
             :     Preconditions.checkNotNull(castFormat_);
             :     Preconditions.checkState(!castFormat_.isEmpty());
             :     StringBuilder result = new StringBuilder();
             :
> This doesn't work under every circumstance, e.g.:
That library seems to be deprecated for me (moved to different location). I 
didn't wabt toi include a dependency on that so I wrote some parsing to escape 
the single quotes and take into account the preceeding escaped backslashes.



--
To view, visit http://gerrit.cloudera.org:8080/14665
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3310abfa6f3ccbbe4c437846c6dd05791153e6f7
Gerrit-Change-Number: 14665
Gerrit-PatchSet: 4
Gerrit-Owner: Gabor Kaszab <[email protected]>
Gerrit-Reviewer: Anonymous Coward (536)
Gerrit-Reviewer: Attila Jeges <[email protected]>
Gerrit-Reviewer: Gabor Kaszab <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Norbert Luksa <[email protected]>
Gerrit-Comment-Date: Wed, 27 Nov 2019 15:44:26 +0000
Gerrit-HasComments: Yes

Reply via email to