You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zoltan Haindrich (JIRA)" <ji...@apache.org> on 2018/12/12 11:10:00 UTC

[jira] [Updated] (HIVE-20010) Fix create view over literals

     [ https://issues.apache.org/jira/browse/HIVE-20010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zoltan Haindrich updated HIVE-20010:
------------------------------------
    Fix Version/s:     (was: 3.1.0)
                   3.1.2
                   3.2.0

> Fix create view over literals
> -----------------------------
>
>                 Key: HIVE-20010
>                 URL: https://issues.apache.org/jira/browse/HIVE-20010
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>             Fix For: 4.0.0, 3.2.0, 3.1.2
>
>         Attachments: HIVE-20010.01.patch
>
>
> {code}
> create or replace view v1 as select 1 as q 
> {code}
> results in an error:
> {code}
> Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Table already exists: default.v1 (state=08S01,code=1)
> {code}
> however the following works (thank you [~mgergely])
> {code}
> create or replace view v1 as select 1 as q union all select 1 as qq where false
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)