You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "vinoyang (JIRA)" <ji...@apache.org> on 2018/09/25 11:48:00 UTC

[jira] [Created] (FLINK-10420) Create and drop view in sql client should check the view created based on the configuration.

vinoyang created FLINK-10420:
--------------------------------

             Summary: 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


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)