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

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

Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1862#discussion_r59007631
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/AbstractTableEnvironment.scala
 ---
    @@ -83,4 +84,17 @@ class AbstractTableEnvironment {
         )
         TranslationContext.registerTable(dataSetTable, name)
       }
    +
    +  /**
    +   * Execute a SQL query on a batch [[Table]].
    +   * The [[Table]] has to be registered in the tables registry
    --- End diff --
    
    We can query more than one table (all tables need to be registered). Tables 
should be registered at the TableEnvironment. I think the term `tables 
registry` is not defined.


> Add support for SQL queries in DataSet programs
> -----------------------------------------------
>
>                 Key: FLINK-3640
>                 URL: https://issues.apache.org/jira/browse/FLINK-3640
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table API
>    Affects Versions: 1.1.0
>            Reporter: Vasia Kalavri
>            Assignee: Vasia Kalavri
>
> This issue covers the task of supporting SQL queries embedded in DataSet 
> programs. In this mode, the input and output of a SQL query is a Table. For 
> this issue, we need to make the following additions to the Table API:
> - add a {{tEnv.sql(query: String): Table}} method for converting a query 
> result into a Table
> - integrate Calcite's SQL parser into the batch Table API translation process.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to