[GitHub] [spark] cloud-fan commented on issue #26167: [SPARK-28893][SQL] Support MERGE INTO in the parser and add the corresponding logical plan

2019-11-08 Thread GitBox
cloud-fan commented on issue #26167: [SPARK-28893][SQL] Support MERGE INTO in 
the parser and add the corresponding logical plan
URL: https://github.com/apache/spark/pull/26167#issuecomment-552062728
 
 
   thanks, merging to master!


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:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] cloud-fan commented on issue #26167: [SPARK-28893][SQL] Support MERGE INTO in the parser and add the corresponding logical plan

2019-11-05 Thread GitBox
cloud-fan commented on issue #26167: [SPARK-28893][SQL] Support MERGE INTO in 
the parser and add the corresponding logical plan
URL: https://github.com/apache/spark/pull/26167#issuecomment-549787918
 
 
   Taking CREATE TABLE as an example. It needs a statement to hold the raw 
table name, so that we can resolve the catalog from the raw table name and 
decide what to do based on if it's session catalog or not.
   
   MERGE INTO does not have this concern. I don't see why we need to hold the 
raw table name for it.
   
   You are right that `ParsedStatement` is unresolved. We can parse sql to 
`MergeIntoTable` directly as you said.


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:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] cloud-fan commented on issue #26167: [SPARK-28893][SQL] Support MERGE INTO in the parser and add the corresponding logical plan

2019-11-04 Thread GitBox
cloud-fan commented on issue #26167: [SPARK-28893][SQL] Support MERGE INTO in 
the parser and add the corresponding logical plan
URL: https://github.com/apache/spark/pull/26167#issuecomment-549297124
 
 
   Here is my proposal: Let's follow `InsertIntoStatement` and put logical plan 
in `MergeIntoStatement` directly. Then the analyzer resolves 
`MergeIntoStatement`, and planner converts `MergeIntoStatement` to physical 
plan(if we have merge API in the future).
   
   Once we migrate all commands to v2 completely, we can do the same for other 
commands as well.


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:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org