-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-14213][SQL] Migrate HiveQl parsing to ANTLR4 parser #12015
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
|
Test build #54367 has finished for PR 12015 at commit
|
|
Test build #54381 has finished for PR 12015 at commit
|
|
Test build #54392 has finished for PR 12015 at commit
|
|
Thanks - I've merged this in master. |
| properties = properties, | ||
| viewOriginalText = sql, | ||
| viewText = sql) | ||
| CreateView(tableDesc, plan(query), allowExist, replace, command(ctx)) |
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.
@hvanhovell I search the whole code base, but still unable to find the implementation of this class CreateView? I am just wondering how scala Compiler can recognize it? Thanks!
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.
@gatorsmile I renamed the import to CreateView. The actual class is org.apache.spark.sql.hive.CreateViewAsSelect. See the following line in HiveSqlParser:
import org.apache.spark.sql.hive.{CreateTableAsSelect => CTAS, CreateViewAsSelect => CreateView}
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.
NVM, CreateViewAsSelect => CreateView. I found it. Thanks!
What changes were proposed in this pull request?
This PR migrates all HiveQl parsing to the new ANTLR4 parser. This PR is build on top of #12011, and we should wait with merging until that one is in (hence the WIP tag).
As soon as this PR is merged we can start removing much of the old parser infrastructure.
How was this patch tested?
Exisiting Hive unit tests.
cc @rxin @andrewor14 @yhuai