GitHub user hvanhovell opened a pull request:
https://github.com/apache/spark/pull/12826
[SPARK-15047][SQL] Cleanup SQL Parser
## What changes were proposed in this pull request?
This PR addresses a few minor issues in SQL parser:
- Removes some unused rules and keywords in the grammar.
- Removes code path for fallback SQL parsing (was needed for Hive native
parsing).
- Use `UnresolvedGenerator` instead of hard-coding `Explode` & `JsonTuple`.
- Adds a more generic way of creating error messages for unsupported Hive
features.
- Use `visitFunctionName` as much as possible.
- Interpret a `CatalogColumn`'s `DataType` directly instead of parsing it
again.
## How was this patch tested?
Existing tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hvanhovell/spark SPARK-15047
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12826.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #12826
----
commit 651a54a18a157856ba26613653c30bbd4115daa9
Author: Herman van Hovell <[email protected]>
Date: 2016-05-01T23:04:34Z
Only allow aggregated correlated scalar subqueries.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]