avoid looking up physical type
This commit is contained in:
parent
cbde3c73b6
commit
603153c36c
|
@ -666,11 +666,12 @@ bool ParquetCursor::currentRowSatisfiesFilter() {
|
||||||
} else if(op == IsNotNull) {
|
} else if(op == IsNotNull) {
|
||||||
rv = !isNull(column);
|
rv = !isNull(column);
|
||||||
} else {
|
} else {
|
||||||
parquet::Type::type pqType = types[column];
|
|
||||||
|
|
||||||
if(pqType == parquet::Type::BYTE_ARRAY && logicalTypes[column] == parquet::LogicalType::UTF8) {
|
if(logicalTypes[column] == parquet::LogicalType::UTF8) {
|
||||||
rv = currentRowSatisfiesTextFilter(constraints[i]);
|
rv = currentRowSatisfiesTextFilter(constraints[i]);
|
||||||
} else if(pqType == parquet::Type::INT32 ||
|
} else {
|
||||||
|
parquet::Type::type pqType = types[column];
|
||||||
|
if(pqType == parquet::Type::INT32 ||
|
||||||
pqType == parquet::Type::INT64 ||
|
pqType == parquet::Type::INT64 ||
|
||||||
pqType == parquet::Type::INT96 ||
|
pqType == parquet::Type::INT96 ||
|
||||||
pqType == parquet::Type::BOOLEAN) {
|
pqType == parquet::Type::BOOLEAN) {
|
||||||
|
@ -679,6 +680,7 @@ bool ParquetCursor::currentRowSatisfiesFilter() {
|
||||||
rv = currentRowSatisfiesDoubleFilter(constraints[i]);
|
rv = currentRowSatisfiesDoubleFilter(constraints[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// it defaults to false; so only set it if true
|
// it defaults to false; so only set it if true
|
||||||
// ideally we'd short-circuit if we'd already set this group as visited
|
// ideally we'd short-circuit if we'd already set this group as visited
|
||||||
|
|
Loading…
Reference in New Issue