forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix duckValueAt for DATE values (facebookincubator#7806)
Summary: Pull Request resolved: facebookincubator#7806 Fix JoinFuzzer's failure when processing DuckDB results of type MAP<DATE,SMALLINT>. duckValueAt<TypeKind> template needs to be specialized for TypeKind::INTEGER to allow it to process both INTEGER and DATE values correctly. Fixes facebookincubator#7744 ``` I1130 04:11:53.702302 81607 JoinFuzzer.cpp:867] ==============================> Started iteration 3 (seed: 923335250) I1130 04:11:53.710649 81607 JoinFuzzer.cpp:281] Executing query plan: -- HashJoin[LEFT SEMI (PROJECT) t1=u1 AND t3=u3 AND t0=u0 AND t2=u2] -> tp6:MAP<DATE,SMALLINT>, tp4:INTEGER, t2:TINYINT, tp5:INTEGER, t3:DOUBLE, t1:INTEGER, match:BOOLEAN -- Values[500 rows in 5 vectors] -> t0:TINYINT, t1:INTEGER, t2:TINYINT, t3:DOUBLE, tp4:INTEGER, tp5:INTEGER, tp6:MAP<DATE,SMALLINT> -- Values[55 rows in 5 vectors] -> u0:TINYINT, u1:INTEGER, u2:TINYINT, u3:DOUBLE I1130 04:11:53.818156 81607 JoinFuzzer.cpp:299] Results: [ROW ROW<tp6:MAP<DATE,SMALLINT>,tp4:INTEGER,t2:TINYINT,tp5:INTEGER,t3:DOUBLE,t1:INTEGER,match:BOOLEAN>: 500 elements, no nulls] terminate called after throwing an instance of 'duckdb::InvalidInputException' what(): Invalid Input Error: Failed to cast value: Unimplemented type for cast (INTEGER -> DATE) ``` Reviewed By: pedroerp Differential Revision: D51708552 fbshipit-source-id: e8ea9af6e3ed9f10fdb5231751b44b758c189a1b
- Loading branch information
1 parent
bb193f3
commit 0494224
Showing
3 changed files
with
52 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters