Alex Behm has posted comments on this change.

Change subject: IMPALA-784: Use `-s in SHOW CREATE TABLE output
......................................................................


Patch Set 2:

(3 comments)

http://gerrit.cloudera.org:8080/#/c/4527/2/fe/src/main/java/com/cloudera/impala/analysis/ToSqlUtils.java
File fe/src/main/java/com/cloudera/impala/analysis/ToSqlUtils.java:

Line 69:   public static String getIdentSql(String ident) {
> Initially I was also worried that identifiers become "ugly" and considered 
So we are in agreement then?


Line 76:     return 
Joiner.on(".").join(getStandaloneIdentSqlList((Splitter.on('.').split(ident))));
> I checked that identifiers can't contain dots, or at least users can't crea
select `a.b.c`.`x.y.z` from (select 1 `x.y.z`) `a.b.c`


Line 88:     if (ident.equals("*")) {
> Without this check a SELECT * became SELECT `*` which is invalid.
SelectListItem.toSql() should take care of that case. Seems like something is 
not behaving as expected and that's where we should apply the fix.


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I8e66439daa35d2e3725e7277c16f3cc5fdb6f128
Gerrit-PatchSet: 2
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Zoltan Ivanfi <z...@cloudera.com>
Gerrit-Reviewer: Alex Behm <alex.b...@cloudera.com>
Gerrit-Reviewer: Tim Armstrong <tarmstr...@cloudera.com>
Gerrit-Reviewer: Zoltan Ivanfi <z...@cloudera.com>
Gerrit-HasComments: Yes

Reply via email to