Search in sources :

Example 1 with SupportsPushDownFilters

use of org.apache.spark.sql.sources.v2.reader.SupportsPushDownFilters in project iceberg by apache.

the class TestFilteredScan method pushFilters.

private void pushFilters(DataSourceReader reader, Filter... filters) {
    Assertions.assertThat(reader).isInstanceOf(SupportsPushDownFilters.class);
    SupportsPushDownFilters filterable = (SupportsPushDownFilters) reader;
    filterable.pushFilters(filters);
}
Also used : SupportsPushDownFilters(org.apache.spark.sql.sources.v2.reader.SupportsPushDownFilters)

Aggregations

SupportsPushDownFilters (org.apache.spark.sql.sources.v2.reader.SupportsPushDownFilters)1