diff options
author | Daoyuan Wang <daoyuan.wang@intel.com> | 2014-11-14 13:51:20 -0800 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-11-14 13:51:20 -0800 |
commit | ade72c436276237f305d6a6aa4b594d43bcc4743 (patch) | |
tree | c052822ee7ab25772e2fbbd751515971bea3db9f /sql/hive/src/test/resources/golden/view_cast-4-d9edb83f4cf847e141d97012314917d4 | |
parent | c258db9ed4104b6eefe9f55f3e3959a3c46c2900 (diff) | |
download | spark-ade72c436276237f305d6a6aa4b594d43bcc4743.tar.gz spark-ade72c436276237f305d6a6aa4b594d43bcc4743.tar.bz2 spark-ade72c436276237f305d6a6aa4b594d43bcc4743.zip |
[SPARK-4239] [SQL] support view in HiveQl
Currently still not support view like
CREATE VIEW view3(valoo)
TBLPROPERTIES ("fear" = "factor")
AS SELECT upper(value) FROM src WHERE key=86;
because the text in metastore for this view is like
select \`_c0\` as \`valoo\` from (select upper(\`src\`.\`value\`) from \`default\`.\`src\` where ...) \`view3\`
while catalyst cannot resolve \`_c0\` for this query.
For view without colname definition in parentheses, it works fine.
Author: Daoyuan Wang <daoyuan.wang@intel.com>
Closes #3131 from adrian-wang/view and squashes the following commits:
8a56fd6 [Daoyuan Wang] michael's comments
e46c056 [Daoyuan Wang] add some golden file
079290a [Daoyuan Wang] remove useless import
88afcad [Daoyuan Wang] support view in HiveQl
Diffstat (limited to 'sql/hive/src/test/resources/golden/view_cast-4-d9edb83f4cf847e141d97012314917d4')
-rw-r--r-- | sql/hive/src/test/resources/golden/view_cast-4-d9edb83f4cf847e141d97012314917d4 | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/sql/hive/src/test/resources/golden/view_cast-4-d9edb83f4cf847e141d97012314917d4 b/sql/hive/src/test/resources/golden/view_cast-4-d9edb83f4cf847e141d97012314917d4 new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/sql/hive/src/test/resources/golden/view_cast-4-d9edb83f4cf847e141d97012314917d4 |