You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Paul Rogers (JIRA)" <ji...@apache.org> on 2019/03/01 17:51:00 UTC

[jira] [Resolved] (IMPALA-7907) Multiple toSql() bugs in ScalarFunction

     [ https://issues.apache.org/jira/browse/IMPALA-7907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Rogers resolved IMPALA-7907.
---------------------------------
    Resolution: Fixed

> Multiple toSql() bugs in ScalarFunction
> ---------------------------------------
>
>                 Key: IMPALA-7907
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7907
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Frontend
>    Affects Versions: Impala 3.0
>            Reporter: Paul Rogers
>            Assignee: Paul Rogers
>            Priority: Minor
>
> Each AST statement node has a {{toSql()}} implementation. The code for {{ScalarFunction}} and ToSqlUtils has a number of issues:
>  * If Location or Symbol are not set, they are shown as {{'null'}}. Better to omit these clauses if the items are not available.
>  * The generated SQL does not follow the [Impala CREATE TABLE|] syntax. For example, the signature and return value are provided for JAVA functions, but should not be.
>  * Unlike other statements, this one is generated with a trailing newline.
>  * {{ToSql.getCreateFunctionSql()}} fails to separate functions with the semi-colon statement terminator.



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