drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venki Korukanti (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-1136) Create view replaces the same existing view
Date Tue, 15 Jul 2014 17:09:05 GMT

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

Venki Korukanti updated DRILL-1136:
-----------------------------------

    Attachment: DRILL-1136-Check-for-existance-of-view-before-creati.patch

> Create view replaces the same existing view
> -------------------------------------------
>
>                 Key: DRILL-1136
>                 URL: https://issues.apache.org/jira/browse/DRILL-1136
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Writer
>            Reporter: Krystal
>            Assignee: Venki Korukanti
>         Attachments: DRILL-1136-Check-for-existance-of-view-before-creati.patch
>
>
> git.commit.id.abbrev=5b57294
> Currently, an existing view can be replaced by using "create view" syntax.  For example,
I have an existing view named student_v .  Then I run a create view with the same name:
> 0: jdbc:drill:schema=dfs> create view student_v as select * from voter;
> +------------+------------+
> |     ok     |  summary   |
> +------------+------------+
> | true       | View 'student_v' replaced successfully in 'dfs.default' schema |
> +------------+------------+
> 1 row selected (0.544 seconds)
> Like oracle and postgres, this should not be allowed.  A user needs to use "create or
replace view ..." syntax.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message