Skip to content

Conversation

@hvanhovell
Copy link
Contributor

What changes were proposed in this pull request?

This PR adds all the current Spark SQL DDL commands to the new ANTLR 4 based SQL parser.

I have found a few inconsistencies in the current commands:

  • Function has an alias field. This is actually the class name of the function.
  • Partition specifications should contain nulls in some commands, and contain Nones in others.
  • AlterTableSkewedLocation: Should defines which columns have skewed values, and should allow us to define storage for each skewed combination of values. We currently only allow one value per field.
  • AlterTableSetFileFormat: Should only have one file format, it currently supports both.

I have implemented all these comments like they were, and I propose to improve them in follow-up PRs.

How was this patch tested?

The existing DDLCommandSuite.

cc @rxin @andrewor14 @yhuai

@SparkQA
Copy link

SparkQA commented Mar 28, 2016

Test build #54354 has finished for PR 12011 at commit f7c8eb5.

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

@SparkQA
Copy link

SparkQA commented Mar 28, 2016

Test build #54359 has finished for PR 12011 at commit b836eae.

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

@SparkQA
Copy link

SparkQA commented Mar 28, 2016

Test build #2704 has finished for PR 12011 at commit b836eae.

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

@andrewor14
Copy link
Contributor

LGTM pretty straightforward. Let's do the improvements in followup PRs.

@andrewor14
Copy link
Contributor

Merging into master.

@asfgit asfgit closed this in 328c711 Mar 28, 2016
ghost pushed a commit to dbtsai/spark that referenced this pull request Mar 29, 2016
### 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 apache#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

Author: Herman van Hovell <hvanhovell@questtec.nl>

Closes apache#12015 from hvanhovell/SPARK-14213.
@rxin
Copy link
Contributor

rxin commented Mar 29, 2016

@hvanhovell can you create a jira ticket for the follow-up tasks?

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