diff options
author | Liang-Chi Hsieh <simonh@tw.ibm.com> | 2016-09-21 06:53:42 -0700 |
---|---|---|
committer | Herman van Hovell <hvanhovell@databricks.com> | 2016-09-21 06:53:42 -0700 |
commit | 248922fd4fb7c11a40304431e8cc667a8911a906 (patch) | |
tree | dbba079a41bc7a83adb4d583787c71d9252bdfd4 /external/kinesis-asl-assembly | |
parent | dd7561d33761d119ded09cfba072147292bf6964 (diff) | |
download | spark-248922fd4fb7c11a40304431e8cc667a8911a906.tar.gz spark-248922fd4fb7c11a40304431e8cc667a8911a906.tar.bz2 spark-248922fd4fb7c11a40304431e8cc667a8911a906.zip |
[SPARK-17590][SQL] Analyze CTE definitions at once and allow CTE subquery to define CTE
## What changes were proposed in this pull request?
We substitute logical plan with CTE definitions in the analyzer rule CTESubstitution. A CTE definition can be used in the logical plan for multiple times, and its analyzed logical plan should be the same. We should not analyze CTE definitions multiple times when they are reused in the query.
By analyzing CTE definitions before substitution, we can support defining CTE in subquery.
## How was this patch tested?
Jenkins tests.
Author: Liang-Chi Hsieh <simonh@tw.ibm.com>
Closes #15146 from viirya/cte-analysis-once.
Diffstat (limited to 'external/kinesis-asl-assembly')
0 files changed, 0 insertions, 0 deletions