Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
Description
If we use cast boolean to filter rows, in vectorization mode the filter may be unable to filter rows, step to reproduce:
create table vtb (key string, value string); insert into table vtb values('0', 'val0'), ('false', 'valfalse'),('off', 'valoff'),('no','valno'),('vk', 'valvk'); select distinct value from vtb where cast(key as boolean);
It's seems we don't generate a SelectColumnIsTrue to filter the rows if the casted type is string:
https://github.com/apache/hive/blob/ff6f3565e50148b7bcfbcf19b970379f2bd59290/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizationContext.java#L2995-L2996
Attachments
Attachments
Issue Links
- causes
-
HIVE-27754 Query Filter with OR condition updates every record in the table
- Open
- links to