You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/04/19 04:37:13 UTC

[GitHub] [druid] LakshSingla commented on pull request #12431: Validate select columns for insert statement

LakshSingla commented on PR #12431:
URL: https://github.com/apache/druid/pull/12431#issuecomment-1102007061

   Is it possible that we can do this on `RelNodes` somehow instead of `SqlNodes`? With SqlNodes, we would have to account for every shape and form of the given statement, but I am assuming that if we can work on `RelNodes` itself, Calcite will convert it into some standard form and we won't have to worry about the cases like gian mentioned in the comments. This might be tricky because there is no distinction between SELECT and INSERT query I think when we plan (because we extract out the INSERT into data source at the beginning itself).
   
   If it is not possible and we can handle everything on the SQLNodes layer itself, maybe we should start breaking out `ParsedNodes` into a separate file, and have some utils method because the `DruidPlanner` file contains a lot of implementation details (even the changes related to extracting PARTITIONED and CLUSTERED can be separated out).


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org