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 "Fang-Yu Rao (JIRA)" <ji...@apache.org> on 2019/04/11 21:22:00 UTC
[jira] [Assigned] (IMPALA-3096) Incorrect subquery rewrite leads to
analysis error
[ https://issues.apache.org/jira/browse/IMPALA-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fang-Yu Rao reassigned IMPALA-3096:
-----------------------------------
Assignee: Fang-Yu Rao
> Incorrect subquery rewrite leads to analysis error
> --------------------------------------------------
>
> Key: IMPALA-3096
> URL: https://issues.apache.org/jira/browse/IMPALA-3096
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 2.5.0
> Reporter: casey
> Assignee: Fang-Yu Rao
> Priority: Minor
> Labels: ramp-up
>
> The query below gets rewritten then an analysis error happens
> {noformat}
> Query: explain SELECT 1
> FROM alltypes a1
> INNER JOIN alltypesagg a2 ON a1.bigint_col = a2.month
> WHERE a1.smallint_col NOT IN (
> SELECT a3.int_col
> FROM alltypes a3
> INNER JOIN alltypes a4 ON a3.string_col = TRIM(a4.date_string_col)
> WHERE a3.id = a2.year AND (a2.timestamp_col + INTERVAL a4.smallint_col SECOND) IS NULL)
> ERROR: AnalysisException: Operand 'TRUE' of timestamp arithmetic expression '(TRUE + INTERVAL a4.smallint_col SECOND)' returns type 'BOOLEAN'. Expected type 'TIMESTAMP'.
> {noformat}
> If the "... + INTERVAL) IS NULL" expression at the bottom is removed there is no error.
> Version: 1920aa5ea214ea21917778d5faad3ef1cb3e9f87
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org