arina-ielchiieva commented on a change in pull request #1818: DRILL-7200: 
Update Calcite to 1.19.0 / 1.20.0
URL: https://github.com/apache/drill/pull/1818#discussion_r299400445
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/ViewHandler.java
 ##########
 @@ -66,7 +66,7 @@ public PhysicalPlan getPlan(SqlNode sqlNode) throws 
ValidationException, RelConv
       // Disallow temporary tables usage in view definition
       config.getConverter().disallowTemporaryTables();
       // Store the viewSql as view def SqlNode is modified as part of the 
resolving the new table definition below.
-      final String viewSql = createView.getQuery().toString();
+      final String viewSql = createView.getQuery().toSqlString(null, 
true).getSql();
 
 Review comment:
   Please add unit test for this case.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to