Skip to content

Conversation

@hvanhovell
Copy link
Contributor

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

@hvanhovell hvanhovell changed the title [SPARK-14213][SQL] Migrate HiveQl parsing to ANTLR4 parser [WIP] [SPARK-14213][SQL] Migrate HiveQl parsing to ANTLR4 parser Mar 28, 2016
@SparkQA
Copy link

SparkQA commented Mar 28, 2016

Test build #54367 has finished for PR 12015 at commit 1fc3592.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class HiveSqlAstBuilder extends SparkSqlAstBuilder

@SparkQA
Copy link

SparkQA commented Mar 28, 2016

Test build #54381 has finished for PR 12015 at commit cb398aa.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 29, 2016

Test build #54392 has finished for PR 12015 at commit 1232590.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Mar 29, 2016

Thanks - I've merged this in master.

properties = properties,
viewOriginalText = sql,
viewText = sql)
CreateView(tableDesc, plan(query), allowExist, replace, command(ctx))
Copy link
Member

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!

Copy link
Contributor Author

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}

Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants