1
0
mirror of https://github.com/cldellow/sqlite-parquet-vtable.git synced 2025-09-08 22:24:56 +00:00

Fix incorrect row pruning for non-text BYTE_ARRAY

This commit is contained in:
Colin Dellow
2018-03-18 19:43:09 -04:00
parent 893e4c63f5
commit 8bf890ab66
3 changed files with 39 additions and 2 deletions

View File

@@ -638,7 +638,7 @@ bool ParquetCursor::currentRowSatisfiesFilter() {
} else {
parquet::Type::type pqType = types[column];
if(pqType == parquet::Type::BYTE_ARRAY) {
if(pqType == parquet::Type::BYTE_ARRAY && logicalTypes[column] == parquet::LogicalType::UTF8) {
rv = currentRowSatisfiesTextFilter(constraints[i]);
} else if(pqType == parquet::Type::INT32 ||
pqType == parquet::Type::INT64 ||