You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Zelaine Fong (JIRA)" <ji...@apache.org> on 2017/02/01 19:55:51 UTC
[jira] [Updated] (DRILL-5215) CTTAS: disallow temp tables in view
expansion logic
[ https://issues.apache.org/jira/browse/DRILL-5215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zelaine Fong updated DRILL-5215:
--------------------------------
Labels: ready-to-commit (was: )
> CTTAS: disallow temp tables in view expansion logic
> ---------------------------------------------------
>
> Key: DRILL-5215
> URL: https://issues.apache.org/jira/browse/DRILL-5215
> Project: Apache Drill
> Issue Type: Improvement
> Affects Versions: 1.10.0
> Reporter: Arina Ielchiieva
> Assignee: Arina Ielchiieva
> Labels: ready-to-commit
> Fix For: 1.10.0
>
>
> This Jira is addressing last two CR comments in PR for Jira DRILL-4956:
> 1. Disallow temp tables in view expansion logic.
> Steps to reproduce:
> a. use default temporary workspace.
> b. create persistent table with name t:
> c. create view over persistent table.
> d. drop persistent table.
> e. create temporary table with the same name as persistent table.
> f. select from view
> Currently Drill returns result on step f but should return error message.
> {noformat}
> VALIDATION ERROR: Temporary tables usage is disallowed. Used temporary table name: t
> {noformat}
> {noformat}
> use dfs.tmp;
> create table t as select 'TABLE' from (values(1));
> create view v as select * from t;
> select * from v;
> +---------+
> | EXPR$0 |
> +---------+
> | TABLE |
> +---------+
> drop table t;
> create temporary table t as select 'TEMP' from (values(1));
> select * from v;
> +---------+
> | EXPR$0 |
> +---------+
> | TEMP |
> +---------+
> {noformat}
> 2. Replace link to gist with CTTAS design doc to Jira link.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)