Class ParquetFilterUtils
Object
io.delta.kernel.defaults.internal.parquet.ParquetFilterUtils
Utilities to convert the Kernel
Predicate into `parquet-mr` FilterPredicate.-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<org.apache.parquet.filter2.predicate.FilterPredicate> toParquetFilter(org.apache.parquet.schema.MessageType parquetFileSchema, io.delta.kernel.expressions.Predicate kernelPredicate) Convert the given Kernel predicatekernelPredicateinto `parquet-mr` predicate.
-
Method Details
-
toParquetFilter
public static Optional<org.apache.parquet.filter2.predicate.FilterPredicate> toParquetFilter(org.apache.parquet.schema.MessageType parquetFileSchema, io.delta.kernel.expressions.Predicate kernelPredicate) Convert the given Kernel predicatekernelPredicateinto `parquet-mr` predicate.- Parameters:
parquetFileSchema- Schema of the Parquet file. We need it to find what columns exists in the Parquet file in order to remove predicates on columns that do not exist in the file. There is no clear way to handle the predicate on columns that don't exist in the Parquet file.kernelPredicate- Kernel predicate to convert.- Returns:
- instance of
FilterCompat.Filter(`parquet-mr` filter)
-