-
Notifications
You must be signed in to change notification settings - Fork 28.5k
[SPARK-12855][SQL] Remove parser dialect developer API #10801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cc @hvanhovell |
BTW - I kept the ParserDialect trait, although I'm thinking we should rename it something else (e.g. ParserInterface?). I didn't change the DDLParser because I'm assuming we will remove it soon (replaced by the Hive one). |
Test build #2390 has finished for PR 10801 at commit
|
Test build #49573 has finished for PR 10801 at commit
|
Test build #2391 has finished for PR 10801 at commit
|
Test build #49574 has finished for PR 10801 at commit
|
} | ||
} | ||
@transient | ||
protected[sql] override val sqlParser: ParserDialect = new ExtendedHiveQlParser(this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add the SparkSQLParser here: new SparkSQLParser(new ExtendedHiveQlParser(this))
Test build #49610 has finished for PR 10801 at commit
|
LGTM |
Thanks - merging this in. |
Based on discussions in #10801, I'm submitting a pull request to rename ParserDialect to ParserInterface. Author: Reynold Xin <rxin@databricks.com> Closes #10817 from rxin/SPARK-12889.
…c and test ## What changes were proposed in this pull request? Since developer API of plug-able parser has been removed in #10801 , docs should be updated accordingly. ## How was this patch tested? This patch will not affect the real code path. Author: Daoyuan Wang <daoyuan.wang@intel.com> Closes #11758 from adrian-wang/spark12855.
…c and test ## What changes were proposed in this pull request? Since developer API of plug-able parser has been removed in apache#10801 , docs should be updated accordingly. ## How was this patch tested? This patch will not affect the real code path. Author: Daoyuan Wang <daoyuan.wang@intel.com> Closes apache#11758 from adrian-wang/spark12855.
This pull request removes the public developer parser API for external parsers. Given everything a parser depends on (e.g. logical plans and expressions) are internal and not stable, external parsers will break with every release of Spark. It is a bad idea to create the illusion that Spark actually supports pluggable parsers. In addition, this also reduces incentives for 3rd party projects to contribute parse improvements back to Spark.