[
https://issues.apache.org/jira/browse/KYLIN-5496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17715379#comment-17715379
]
ASF subversion and git services commented on KYLIN-5496:
--------------------------------------------------------
Commit 8f38936d58f198d60f7bde8ff233b26b015754f8 in kylin's branch
refs/heads/kylin5 from sibingzhang
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=8f38936d58 ]
KYLIN-5496 Fix the query result is incorrect after the character type in the
'yyyy-mm-dd' format is converted to the timestamp type and then filtered
> The query result is incorrect after converting the string type data in
> 'yyyy-mm-dd' format to timestamp type and querying with filter of this column
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: KYLIN-5496
> URL: https://issues.apache.org/jira/browse/KYLIN-5496
> Project: Kylin
> Issue Type: Bug
> Reporter: longfeiJiang
> Assignee: longfeiJiang
> Priority: Major
> Attachments: image-2023-04-06-14-43-30-194.png,
> image-2023-04-06-14-47-13-247.png, image-2023-04-06-14-50-01-533.png
>
>
> The query result is incorrect after converting the string type data in
> 'yyyy-mm-dd' format to timestamp type and querying with filter of this column.
>
> Steps to reproduce:
> 1. Create a hive table, the field type is string, and insert data 2022-12-01
> {code:java}
> create table test(dt string);
> insert into test values('2022-12-01'); {code}
> 2. Use kylin loads the table and builds the model
> 3. Query as follows sql, result is empty
> select dt,cast(dt as timestamp) from TEST.TEST where cast(dt as
> timestamp)='2022-12-01 00:00:00.0'
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)