You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2018/09/15 18:56:00 UTC

[jira] [Commented] (HIVE-20462) "CREATE VIEW IF NOT EXISTS" fails if view already exists

    [ https://issues.apache.org/jira/browse/HIVE-20462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16616456#comment-16616456 ] 

Daniel Dai commented on HIVE-20462:
-----------------------------------

[~jcamachorodriguez], can you review?

> "CREATE VIEW IF NOT EXISTS" fails if view already exists
> --------------------------------------------------------
>
>                 Key: HIVE-20462
>                 URL: https://issues.apache.org/jira/browse/HIVE-20462
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>         Environment: HDP 3.0
> Hive 3.1.0.3.0.0.0-1634
>            Reporter: static-max
>            Assignee: Daniel Dai
>            Priority: Major
>         Attachments: HIVE-20462.1.patch
>
>
> After upgrading to Hive 3.1 from Hive 1.2, I can't run my queries anymore. It seems that "if not exists" is ignored in "create view".
> *Example:*
>  # create view if not exists test as select 1;
>  # create view if not exists test as select 1;
> The second call fails with "Table already exists: default.test". I changed this to "create or replace view" as a workaround.
> Also documented [link here|https://community.hortonworks.com/questions/214772/hdp-3-hive-create-view-if-not-exists-fails.html|]



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