flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vinoyang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-10420) Create and drop view in sql client should check the view created based on the configuration.
Date Tue, 09 Oct 2018 15:21:00 GMT

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

vinoyang commented on FLINK-10420:
----------------------------------

[~twalthr] What's your opinion?

> Create and drop view in sql client should check the view created based on the configuration.
> --------------------------------------------------------------------------------------------
>
>                 Key: FLINK-10420
>                 URL: https://issues.apache.org/jira/browse/FLINK-10420
>             Project: Flink
>          Issue Type: Bug
>          Components: SQL Client
>            Reporter: vinoyang
>            Assignee: vinoyang
>            Priority: Minor
>
> Currently, just checked current session : 
> {code:java}
> private void callCreateView(SqlCommandCall cmdCall) {
>    final String name = cmdCall.operands[0];
>    final String query = cmdCall.operands[1];
>    //here
>    final String previousQuery = context.getViews().get(name);
>    if (previousQuery != null) {
>       printExecutionError(CliStrings.MESSAGE_VIEW_ALREADY_EXISTS);
>       return;
>    }
> {code}
>  



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

Mime
View raw message