[
https://issues.apache.org/jira/browse/IMPALA-9836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17129138#comment-17129138
]
Volnei edited comment on IMPALA-9836 at 6/9/20, 4:36 PM:
---------------------------------------------------------
Is there anything that I can do? This is a very limitant problem.
So I decided to remove the null test, like this
the function doesn't present the bug.
was (Author: volnei):
Is there anything that I can do? This is a very limitant problem.
> 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: [email protected]
For additional commands, e-mail: [email protected]