aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorCheng Hao <hao.cheng@intel.com>2014-12-11 22:51:49 -0800
committerMichael Armbrust <michael@databricks.com>2014-12-11 22:52:07 -0800
commitc82e99d87a8c37a1c4c2b24ed54e6295decf9117 (patch)
tree2410d457154723417639ae264e518684013a9908 /external
parentc3b0713838797c9676be4ddae7cfcacae1775dd2 (diff)
downloadspark-c82e99d87a8c37a1c4c2b24ed54e6295decf9117.tar.gz
spark-c82e99d87a8c37a1c4c2b24ed54e6295decf9117.tar.bz2
spark-c82e99d87a8c37a1c4c2b24ed54e6295decf9117.zip
[SPARK-4825] [SQL] CTAS fails to resolve when created using saveAsTable
Fix bug when query like: ``` test("save join to table") { val testData = sparkContext.parallelize(1 to 10).map(i => TestData(i, i.toString)) sql("CREATE TABLE test1 (key INT, value STRING)") testData.insertInto("test1") sql("CREATE TABLE test2 (key INT, value STRING)") testData.insertInto("test2") testData.insertInto("test2") sql("SELECT COUNT(a.value) FROM test1 a JOIN test2 b ON a.key = b.key").saveAsTable("test") checkAnswer( table("test"), sql("SELECT COUNT(a.value) FROM test1 a JOIN test2 b ON a.key = b.key").collect().toSeq) } ``` Author: Cheng Hao <hao.cheng@intel.com> Closes #3673 from chenghao-intel/spark_4825 and squashes the following commits: e8cbd56 [Cheng Hao] alternate the pattern matching order for logical plan:CTAS e004895 [Cheng Hao] fix bug (cherry picked from commit 0abbff286220bbcbbf28fbd80b8c5bf59ff37ce2) Signed-off-by: Michael Armbrust <michael@databricks.com>
Diffstat (limited to 'external')
0 files changed, 0 insertions, 0 deletions