Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit bcd51c3

Browse files
committed
Properly handle HDK boolean type checking in comparison with SQLite
1 parent 15ec777 commit bcd51c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

omniscidb/Tests/ArrowSQLRunner/SQLiteComparator.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ void checkTypeConsistency(const int ref_col_type, const hdk::ir::Type* col_type)
4646
CHECK_EQ(SQLITE_INTEGER, ref_col_type);
4747
} else if (col_type->isFloatingPoint() || col_type->isDecimal()) {
4848
CHECK(ref_col_type == SQLITE_FLOAT || ref_col_type == SQLITE_INTEGER);
49+
} else if (col_type->isBoolean()) {
50+
CHECK(ref_col_type == SQLITE_INTEGER || ref_col_type == SQLITE_TEXT);
4951
} else {
50-
CHECK_EQ(SQLITE_TEXT, ref_col_type);
52+
CHECK_EQ(SQLITE_TEXT, ref_col_type) << "HDK Type: " << col_type->toString();
5153
}
5254
}
5355

0 commit comments

Comments
 (0)