You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Tim Armstrong (Jira)" <ji...@apache.org> on 2020/06/08 16:21:00 UTC

[jira] [Updated] (IMPALA-9836) IllegalStateException when UDF is evaluated with NULL inputs and returns error

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

Tim Armstrong updated IMPALA-9836:
----------------------------------
    Summary: IllegalStateException when UDF is evaluated with NULL inputs and returns error  (was: IllegalStateException when UDF is evaluated with NULL inputs)

> IllegalStateException when UDF is evaluated with NULL inputs and returns error
> ------------------------------------------------------------------------------
>
>                 Key: IMPALA-9836
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9836
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Frontend
>    Affects Versions: Impala 2.12.0
>         Environment: Cloudera QuickStart 5.16.2
> gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)
> impala-2.12.0+cdh5.16.2+0-1.cdh5.16.2.p0.22.el6.x86_64
> impala-shell-2.12.0+cdh5.16.2+0-1.cdh5.16.2.p0.22.el6.x86_64
> impala-state-store-2.12.0+cdh5.16.2+0-1.cdh5.16.2.p0.22.el6.x86_64
> impala-server-2.12.0+cdh5.16.2+0-1.cdh5.16.2.p0.22.el6.x86_64
> impala-udf-devel-2.12.0+cdh5.16.2+0-1.cdh5.16.2.p0.22.el6.x86_64
> hue-impala-3.9.0+cdh5.16.2+8463-1.cdh5.16.2.p0.26.el6.x86_64
> impala-catalog-2.12.0+cdh5.16.2+0-1.cdh5.16.2.p0.22.el6.x86_64
>            Reporter: Volnei
>            Priority: Major
>
> Hi,
> Is there any known reason that when we code a C++ UDF, the error below happens?
> {code:java}
> select sum(squid_totalsize_req("squid", slog))
> from squidlog
> where squid_totalsize_req("squid", slog) < 500;
> /IllegalStateException: Failed to evaluate generated predicate: squidlogs.squid_totalsize_req('squid', NULL) < 500.Argument 2 (LOG): Cannot be empty.
> {code}
> Whenever I use the UDF in the 'where' clause, the field is passed with a null value.
> Thanks a lot for the help.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org