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 "Sheng Wang (Jira)" <ji...@apache.org> on 2022/02/21 02:31:00 UTC
[jira] [Resolved] (IMPALA-11049) Order by clause contains cast expr execute failed after 'SimplifyCastExprRule' rewrite
[ https://issues.apache.org/jira/browse/IMPALA-11049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sheng Wang resolved IMPALA-11049.
---------------------------------
Fix Version/s: Impala 4.1.0
Resolution: Fixed
> Order by clause contains cast expr execute failed after 'SimplifyCastExprRule' rewrite
> --------------------------------------------------------------------------------------
>
> Key: IMPALA-11049
> URL: https://issues.apache.org/jira/browse/IMPALA-11049
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 4.1.0
> Reporter: Sheng Wang
> Assignee: Sheng Wang
> Priority: Major
> Fix For: Impala 4.1.0
>
>
> When add new rewrite rule 'SimplifyCastExprRule' in IMPALA-10836, this query will execute failed:
> {code:java}
> explain
> SELECT month(to_timestamp(cast(d_date_sk AS string),'yyyy-MM-dd')) aa
> FROM date_dim
> GROUP BY month(to_timestamp(cast(d_date_sk AS string),'yyyy-MM-dd'))
> ORDER BY month(to_timestamp(cast(d_date_sk AS string),'yyyy-MM-dd')) LIMIT 10;
> {code}
> The exception is:
> {code:java}
> ERROR: AnalysisException: No matching function with signature: to_timestamp(INT, STRING).
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org