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 "Volnei (Jira)" <ji...@apache.org> on 2020/06/06 13:31:00 UTC
[jira] [Created] (IMPALA-9836) Field is passed as null to UDF when
used in the 'where' clause
Volnei created IMPALA-9836:
------------------------------
Summary: Field is passed as null to UDF when used in the 'where' clause
Key: IMPALA-9836
URL: https://issues.apache.org/jira/browse/IMPALA-9836
Project: IMPALA
Issue Type: Question
Components: Backend
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
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