spark-instrumented-optimizer/sql/hive/src/test
jiangxingbo f85f29608d [SPARK-19024][SQL] Implement new approach to write a permanent view
## What changes were proposed in this pull request?

On CREATE/ALTER a view, it's no longer needed to generate a SQL text string from the LogicalPlan, instead we store the SQL query text、the output column names of the query plan, and current database to CatalogTable. Permanent views created by this approach can be resolved by current view resolution approach.

The main advantage includes:
1. If you update an underlying view, the current view also gets updated;
2. That gives us a change to get ride of SQL generation for operators.

Major changes of this PR:
1. Generate the view-specific properties(e.g. view default database, view query output column names) during permanent view creation and store them as properties in the CatalogTable;
2. Update the commands `CreateViewCommand` and `AlterViewAsCommand`, get rid of SQL generation from them.

## How was this patch tested?
Existing tests.

Author: jiangxingbo <jiangxb1987@gmail.com>

Closes #16613 from jiangxb1987/view-write-path.
2017-01-18 19:13:01 +08:00
..
java/org/apache/spark/sql/hive [SPARK-16736][CORE][SQL] purge superfluous fs calls 2016-08-17 11:43:01 -07:00
resources [SPARK-19219][SQL] Fix Parquet log output defaults 2017-01-17 12:14:38 +00:00
scala/org/apache/spark/sql [SPARK-19024][SQL] Implement new approach to write a permanent view 2017-01-18 19:13:01 +08:00