kkhatua commented on a change in pull request #1608: DRILL-6960: AutoLimit the 
size of ResultSet for a WebUI (or REST) client
URL: https://github.com/apache/drill/pull/1608#discussion_r256531254
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/DrillSqlWorker.java
 ##########
 @@ -183,4 +188,34 @@ private static PhysicalPlan getQueryPlan(QueryContext 
context, String sql, Point
 
     return handler.getPlan(sqlNode);
   }
+
+  //Wrap with Auto Limit
+  private static SqlNode checkAndApplyAutoLimit(SqlConverter parser, 
QueryContext context, String sql) {
+    SqlNode sqlNode = parser.parse(sql);
 
 Review comment:
   Good point about the serialization of the sqlNode. And since you've broken 
up the logic across multiple methods, we can do without the debug message. This 
helps. Thanks, @ihuzenko !

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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