GitHub user clockfly opened a pull request:
https://github.com/apache/spark/pull/12872
[SPARK-6339][SQL] Supports create CREATE TEMPORARY VIEW tableIdentifier AS
query
## What changes were proposed in this pull request?
This PR support new SQL syntax CREATE TEMPORARY VIEW.
Like:
```
CREATE TEMPORARY VIEW viewName AS SELECT * from xx
CREATE OR REPLACE TEMPORARY VIEW viewName AS SELECT * from xx
CREATE TEMPORARY VIEW IF NOT EXISTS viewName AS SELECT * from xx
CREATE OR REPLACE TEMPORARY VIEW IF NOT EXISTS viewName AS SELECT * from xx
CREATE TEMPORARY VIEW IF NOT EXISTS viewName (c1 COMMENT 'blabla', c2
COMMENT 'blabla') AS SELECT * FROM xx
```
## How was this patch tested?
Unit tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/clockfly/spark spark-6399
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12872.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 #12872
----
commit 301855e22cc8aea628341232616274e17e60c4c2
Author: Sean Zhong <[email protected]>
Date: 2016-04-30T09:08:18Z
* [SPARK-6339][SQL] Supports create CREATE TEMPORARY VIEW tableIdentifier
AS query
This PR support new SQL syntax CREATE TEMPORARY VIEW.
Unit tests.
Author: Sean Zhong <[email protected]>
----
---
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]