[
https://issues.apache.org/jira/browse/IMPALA-12386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17757738#comment-17757738
]
ASF subversion and git services commented on IMPALA-12386:
----------------------------------------------------------
Commit c5ecd8e666e6dbdeba4fd9d25acb222eceaa240a in impala's branch
refs/heads/master from Peter Rozsa
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=c5ecd8e66 ]
IMPALA-12386: Fix clone constructor in CastExpr
This commit addresses an issue in the CastExpr class where the clone
constructor was not properly preserving compatibility settings. The
clone constructor assigned the default compatibility regardless of the
source expression, causing substitution errors for partitioned tables.
Example:
'insert into unsafe_insert_partitioned(int_col, string_col)
values("1", null), (null, "1")'
Throws:
ERROR: IllegalStateException: Failed analysis after expr substitution.
CAUSED BY: IllegalStateException: cast STRING to INT
Tests:
- new test case added to insert-unsafe.test
Change-Id: Iff64ce02539651fcb3a90db678f74467f582648f
Reviewed-on: http://gerrit.cloudera.org:8080/20385
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> NullExpr substitution failure with unsafe casts enabled
> -------------------------------------------------------
>
> Key: IMPALA-12386
> URL: https://issues.apache.org/jira/browse/IMPALA-12386
> Project: IMPALA
> Issue Type: Bug
> Components: fe
> Affects Versions: Impala 4.3.0
> Reporter: Peter Rozsa
> Assignee: Peter Rozsa
> Priority: Major
>
> insert into t01(a, b) values(null, "23"), ("21", null) query fails with the
> following error:
> ERROR: IllegalStateException: Failed analysis after expr substitution.
> CAUSED BY: IllegalStateException: cast STRING to INT
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]