Skip to content

Conversation

@hvanhovell
Copy link
Contributor

What changes were proposed in this pull request?

This PR removes the ANTLR3 based parser, and moves the new ANTLR4 based parser into the org.apache.spark.sql.catalyst.parser package.

How was this patch tested?

Existing unit tests.

cc @rxin @andrewor14 @yhuai

(AS? query)? #createTable
| ANALYZE TABLE tableIdentifier partitionSpec? COMPUTE STATISTICS
(identifier | FOR COLUMNS identifierSeq?) #analyze
(identifier | FOR COLUMNS identifierSeq?)? #analyze
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to update the StatisticsSuite and change its parser to the HiveSqlParser & this error popped up. I could also do this in a separate PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's fine, just confirming

@andrewor14
Copy link
Contributor

LGTM, can't wait to merge this.

"TOK_SHOW_SET_ROLE" -> "SHOW CURRENT ROLES / SET ROLE",
"TOK_SHOW_TRANSACTIONS" -> "SHOW TRANSACTIONS",
"TOK_SHOWINDEXES" -> "SHOW INDEXES",
"TOK_SHOWLOCKS" -> "SHOW LOCKS")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, what happens now if I run one of these? What exception will we get?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SparkQA
Copy link

SparkQA commented Mar 30, 2016

Test build #54550 has finished for PR 12071 at commit a3f1d79.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 31, 2016

Test build #2713 has finished for PR 12071 at commit a3f1d79.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 31, 2016

Test build #54610 has finished for PR 12071 at commit 2a93f3d.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@hvanhovell
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented Mar 31, 2016

Test build #54619 has finished for PR 12071 at commit 2a93f3d.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 31, 2016

Test build #54624 has finished for PR 12071 at commit 0a6528e.

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

@rxin
Copy link
Contributor

rxin commented Mar 31, 2016

Thanks - merging in master.

@asfgit asfgit closed this in a9b93e0 Mar 31, 2016
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