GitHub user liancheng opened a pull request:

    https://github.com/apache/spark/pull/10733

    [SPARK-12728][SQL] Integrates SQL generation with native view

    This PR is a follow-up of PR #10541. It integrates the newly introduced SQL 
generation feature with native view to make native view canonical.
    
    In this PR, a new SQL option `spark.sql.nativeView.canonical` is added.  
When this option and `spark.sql.nativeView` are both `true`, Spark SQL tries to 
handle `CREATE VIEW` DDL statements using SQL query strings generated from view 
definition logical plans. If we failed to map the plan to SQL, we fallback to 
the original native view approach (i.e., wrap the original view definition SQL 
text with an extra `SELECT` clause.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/liancheng/spark 
spark-12728.integrate-sql-gen-with-native-view

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/10733.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 #10733
    
----
commit 18f9a4d32f2040663831c218881f487235e6c18e
Author: Cheng Lian <[email protected]>
Date:   2016-01-13T02:12:54Z

    Integrates SQL generation with native view

----


---
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]

Reply via email to