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

ASF GitHub Bot commented on FLINK-10163:
----------------------------------------

twalthr opened a new pull request #6606: [FLINK-10163] [sql-client] Support 
views in SQL Client
URL: https://github.com/apache/flink/pull/6606
 
 
   ## What is the purpose of the change
   
   Adds initial support for views in SQL Client. It adds the following 
statements:
   - `CREATE VIEW`: Creates a virtual table from a SQL query. Syntax: 'CREATE 
VIEW <name> AS <query>'
   - `SHOW VIEW`: Describes a previously created virtual table. Syntax: 'SHOW 
VIEW <name>'
   - `DROP VIEW`: Deletes a previously created virtual table. Syntax: 'DROP 
VIEW <name>'
   
   It also adds the section `views` to environment files.
   
   
   ## Brief change log
   
   - Rewritten statement parser for statements with more than 1 operand
   - View support added throughout the SQL Client
   - Initial validation of environment files during startup
   - Code clean up
   
   
   ## Verifying this change
   
   - `SqlCommandParserTest`
   - `ExecutionContextTest`
   - `LocalExecutorITCase`
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: no
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? yes
     - If yes, how is the feature documented? docs
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Support CREATE VIEW in SQL Client
> ---------------------------------
>
>                 Key: FLINK-10163
>                 URL: https://issues.apache.org/jira/browse/FLINK-10163
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table API &amp; SQL
>            Reporter: Timo Walther
>            Assignee: Timo Walther
>            Priority: Major
>              Labels: pull-request-available
>
> The possibility to define a name for a subquery would improve the usability 
> of the SQL Client. The SQL standard defines \{{CREATE VIEW}} for defining a 
> virtual table.
>  
> Example:
> {code}
>  CREATE VIEW viewName
>  [ '(' columnName [, columnName ]* ')' ]
>  AS Query
> {code}



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

Reply via email to