rdblue commented on issue #28026: [SPARK-31257][SQL] Unify create table syntax 
(WIP)
URL: https://github.com/apache/spark/pull/28026#issuecomment-606751060
 
 
   What you're suggesting is to maintain compatibility with Hive SQL, but 
arbitrarily limit what a source connector can do.
   
   How about this: users shouldn't be allowed to use the `|` character as the 
delimiter for Hive's delimited format in sequence files. Let's add special code 
to Spark to check for that case and fail it before passing everything to the 
catalog.
   
   Hopefully you see my point: making decisions about what catalogs should 
support is not a reasonable thing for Spark to do. Spark should reject what is 
not well-formed, but should not decide details for specific sources.
   
   And to be clear, if you want to do this in Spark's built-in Hive 
catalog/connector then that's fine with me. But this kind of decision should be 
made by the catalog, not in the parser or in logical plans.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to