You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/10/04 18:00:00 UTC

[jira] [Commented] (SAMZA-1937) Enable users to perform Sql queries (SELECT statement)

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

ASF GitHub Bot commented on SAMZA-1937:
---------------------------------------

GitHub user weiqingy opened a pull request:

    https://github.com/apache/samza/pull/691

    SAMZA-1937: Make DSL converter work when sql is a query

    ## What changes were proposed in this pull request?
    To support the use case that users use Samza Sql Console or Samza Sql shell to perform SELECT query. 
    
    ## How was this patch tested?
    1. Build passed and current unit tests passed
    2. Test in Samza Sql shell

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/weiqingy/samza apa-master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/samza/pull/691.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #691
    
----
commit 40fcab7b679c3e9dc4585d0ebd2c9c5bb85565d1
Author: Weiqing Yang <ya...@...>
Date:   2018-09-22T22:01:51Z

    make DSL converter work when sql is a query

----


> Enable users to perform Sql queries (SELECT statement)
> ------------------------------------------------------
>
>                 Key: SAMZA-1937
>                 URL: https://issues.apache.org/jira/browse/SAMZA-1937
>             Project: Samza
>          Issue Type: Bug
>          Components: sql
>            Reporter: Weiqing Yang
>            Priority: Major
>             Fix For: 0.15.0
>
>
> Current DSL converter does not support the use case that users use Samza Sql Console or Samza Sql shell to perform SELECT query. The reason is "log.outputStream" does not have schema while Calcite asks for its schema when Calcite do validation for the Sql statement (we only passed selectQuery to Calcite before, but now we pass the whole sql to Calcite). Also, it seems "log.outputStream" does not work with ModifyTranslator. 



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