Uh oh!
There was an error while loading. Please reload this page.
[SPARK-5213] [SQL] Pluggable SQL Parser Support - #5827
Conversation
SparkQA
commented
May 1, 2015
Test build #31518 has finished for PR 5827 at commit
|
There was a problem hiding this comment.
Remove this comment? It's probably confused once this PR merged.
chenghao-intel
commented
May 1, 2015
Thank you @scwf for the fixing. :) |
There was a problem hiding this comment.
@chenghao-intel this sqlparser actually will not be used for now, place here just to fix mima test
There was a problem hiding this comment.
I think we'd better keep it, not just for the mima test, but also for the sub class of Dialect. e.g. we have to specify the SparkSQLParser for HiveQLDialect.
There was a problem hiding this comment.
agree to keep it, and in dialect parser we should not use SparkSQLParser. Dialect give a fallback(string -> logicalplan) and we call it in sqlParser
scwf
commented
May 1, 2015
Retest this please |
SparkQA
commented
May 1, 2015
Test build #31566 has finished for PR 5827 at commit
|
SparkQA
commented
May 1, 2015
Test build #31573 timed out for PR 5827 at commit |
scwf
commented
May 1, 2015
retest this please |
SparkQA
commented
May 1, 2015
Test build #31605 has finished for PR 5827 at commit
|
scwf
commented
May 2, 2015
@marmbrus any comment here? |
This is a follow up of #5827 to remove the additional `SparkSQLParser` Author: Cheng Hao <hao.cheng@intel.com> Closes#5965 from chenghao-intel/remove_sparksqlparser and squashes the following commits: 509a233 [Cheng Hao] Remove the HiveQlQueryExecution a5f9e3b [Cheng Hao] Remove the duplicated SparkSQLParser (cherry picked from commit 074d75d) Signed-off-by: Michael Armbrust <michael@databricks.com>
This is a follow up of #5827 to remove the additional `SparkSQLParser` Author: Cheng Hao <hao.cheng@intel.com> Closes#5965 from chenghao-intel/remove_sparksqlparser and squashes the following commits: 509a233 [Cheng Hao] Remove the HiveQlQueryExecution a5f9e3b [Cheng Hao] Remove the duplicated SparkSQLParser
based on apache#4015, we should not delete `sqlParser` from sqlcontext, that leads to mima failed. Users implement dialect to give a fallback for `sqlParser` and we should construct `sqlParser` in sqlcontext according to the dialect `protected[sql] val sqlParser = new SparkSQLParser(getSQLDialect().parse(_))` Author: Cheng Hao <hao.cheng@intel.com> Author: scwf <wangfei1@huawei.com> Closesapache#5827 from scwf/sqlparser1 and squashes the following commits: 81b9737 [scwf] comment fix 0878bd1 [scwf] remove comments c19780b [scwf] fix mima tests c2895cf [scwf] Merge branch 'master' of https://github.com/apache/spark into sqlparser1 493775c [Cheng Hao] update the code as feedback 81a731f [Cheng Hao] remove the unecessary comment aab0b0b [Cheng Hao] polish the code a little bit 49b9d81 [Cheng Hao] shrink the comment for rebasing
This is a follow up of apache#5827 to remove the additional `SparkSQLParser` Author: Cheng Hao <hao.cheng@intel.com> Closesapache#5965 from chenghao-intel/remove_sparksqlparser and squashes the following commits: 509a233 [Cheng Hao] Remove the HiveQlQueryExecution a5f9e3b [Cheng Hao] Remove the duplicated SparkSQLParser
based on apache#4015, we should not delete `sqlParser` from sqlcontext, that leads to mima failed. Users implement dialect to give a fallback for `sqlParser` and we should construct `sqlParser` in sqlcontext according to the dialect `protected[sql] val sqlParser = new SparkSQLParser(getSQLDialect().parse(_))` Author: Cheng Hao <hao.cheng@intel.com> Author: scwf <wangfei1@huawei.com> Closesapache#5827 from scwf/sqlparser1 and squashes the following commits: 81b9737 [scwf] comment fix 0878bd1 [scwf] remove comments c19780b [scwf] fix mima tests c2895cf [scwf] Merge branch 'master' of https://github.com/apache/spark into sqlparser1 493775c [Cheng Hao] update the code as feedback 81a731f [Cheng Hao] remove the unecessary comment aab0b0b [Cheng Hao] polish the code a little bit 49b9d81 [Cheng Hao] shrink the comment for rebasing
This is a follow up of apache#5827 to remove the additional `SparkSQLParser` Author: Cheng Hao <hao.cheng@intel.com> Closesapache#5965 from chenghao-intel/remove_sparksqlparser and squashes the following commits: 509a233 [Cheng Hao] Remove the HiveQlQueryExecution a5f9e3b [Cheng Hao] Remove the duplicated SparkSQLParser
based on apache#4015, we should not delete `sqlParser` from sqlcontext, that leads to mima failed. Users implement dialect to give a fallback for `sqlParser` and we should construct `sqlParser` in sqlcontext according to the dialect `protected[sql] val sqlParser = new SparkSQLParser(getSQLDialect().parse(_))` Author: Cheng Hao <hao.cheng@intel.com> Author: scwf <wangfei1@huawei.com> Closesapache#5827 from scwf/sqlparser1 and squashes the following commits: 81b9737 [scwf] comment fix 0878bd1 [scwf] remove comments c19780b [scwf] fix mima tests c2895cf [scwf] Merge branch 'master' of https://github.com/apache/spark into sqlparser1 493775c [Cheng Hao] update the code as feedback 81a731f [Cheng Hao] remove the unecessary comment aab0b0b [Cheng Hao] polish the code a little bit 49b9d81 [Cheng Hao] shrink the comment for rebasing
This is a follow up of apache#5827 to remove the additional `SparkSQLParser` Author: Cheng Hao <hao.cheng@intel.com> Closesapache#5965 from chenghao-intel/remove_sparksqlparser and squashes the following commits: 509a233 [Cheng Hao] Remove the HiveQlQueryExecution a5f9e3b [Cheng Hao] Remove the duplicated SparkSQLParser
rxin
commented
Jan 14, 2016
@scwf are you guys using this feature? I'm thinking about just removing it in Spark 2.0. @chenghao-intel who wanted it in the first place no longer needs it. |
scwf
commented
Jan 14, 2016
@rxin, yes we used this and we implements a new sqlparser based on this interface to support ANSI tpcds sql. |
rxin
commented
Jan 14, 2016
What's different from the one in Spark master now? It would be great to contribute the parser changes back now we have a full fledged parser in Spark, and going towards more ANSI compatibility is definitely on the roadmap. |
scwf
commented
Jan 16, 2016
@rxin Our parser is a extended version of the I noticed that there are some PRs for these features, i will take a look at that PRs when i have time and see what i can do. |
rxin
commented
Jan 16, 2016
FYI we are going to remove this pluggability. It is extra overhead to maintain, and actually encourages projects to not contribute their improvements upstream, which is bad. |
scwf
commented
Jan 16, 2016
Actually we were trying to contribute this improvements, unfortunately the community do not want them for maintain(or compatibility with hive ql) reason in the past:). I am glad that spark sql use a single parser such that people can make contributions and make it more and more powerful. |
rxin
commented
Jan 18, 2016
Yup thanks. That's why we are only removing it now :) |
based on #4015, we should not delete
sqlParserfrom sqlcontext, that leads to mima failed. Users implement dialect to give a fallback forsqlParserand we should constructsqlParserin sqlcontext according to the dialectprotected[sql] val sqlParser = new SparkSQLParser(getSQLDialect().parse(_))