[ https://issues.apache.org/jira/browse/IMPALA-7960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16719240#comment-16719240 ]
ASF subversion and git services commented on IMPALA-7960: --------------------------------------------------------- Commit 899bfd10a2a42d40634cdb8c9c670494b3c8945e in impala's branch refs/heads/master from [~bikram.sngh91] [ https://git-wip-us.apache.org/repos/asf?p=impala.git;h=899bfd1 ] IMPALA-7960: Revert "IMPALA-5929: Remove redundant explicit casts to string" The fix for IMPALA-5929 introduced a bug that produced wrong results. This bug is detailed in IMPALA-7960. Reverting for now. This reverts commit 545163bb0a5c86aa02652d0557871f5b694a6c82. Change-Id: I6f0da62a7ff86f05859a2acbec13a726a9bd6f4c Reviewed-on: http://gerrit.cloudera.org:8080/12073 Reviewed-by: Zoram Thanga <zo...@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> > wrong results when comparing timestamp casted to varchar of smaller length to > a string literal in a binary predicate > -------------------------------------------------------------------------------------------------------------------- > > Key: IMPALA-7960 > URL: https://issues.apache.org/jira/browse/IMPALA-7960 > Project: IMPALA > Issue Type: Bug > Affects Versions: Impala 2.12.0 > Reporter: Bikramjeet Vig > Assignee: Bikramjeet Vig > Priority: Blocker > Labels: correctness > > Expression rewriting seems to identify this as a redundant cast and removes > it. > Steps to re-create: > {noformat} > select * from (select cast('2018-12-11 09:59:37' as timestamp) as ts) tbl > where cast(ts as varchar(10)) = '2018-12-11'; > {noformat} > output: > {noformat} > Fetched 0 row(s) > {noformat} > Now disable expression re-writes. > {noformat} > set ENABLE_EXPR_REWRITES=false; > select * from (select cast('2018-12-11 09:59:37' as timestamp) as ts) tbl > where cast(ts as varchar(10)) = '2018-12-11'; > {noformat} > output: > {noformat} > +---------------------+ > | ts | > +---------------------+ > | 2018-12-11 09:59:37 | > +---------------------+ > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org