Read Primitives — Bigint IN List Filter
Read Primitives benchmark · all Read Primitives queries
IN-list predicate with highly selective integer values
Representative SQL
Rendered for DataFusion with default parameters.
SELECT *FROM ordersWHERE o_orderkey IN (1, 100, 1000, 10000, 100000)Representative DataFrame
Expression family (Polars, PySpark, DataFusion), default parameters.
def expression_impl(ctx: DataFrameContext) -> Any: table = ctx.get_table(table_name) if conditions: table = table.filter(_expr_combined_filter(ctx, conditions)) result = table.select(*columns) return result.limit(limit) if limit is not None else resultGet the exact query for your run
The blocks above are representative. To get the precise statement a specific platform runs at a specific scale, substitute your own values:
from benchbox import ReadPrimitives
bench = ReadPrimitives(scale_factor=0.01) # your scale factorqueries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQLprint(queries['filter_bigint_in_list_selective'])For the DataFrame form:
from benchbox.core.query_catalog import get_dataframe_render
print(get_dataframe_render('read_primitives', 'filter_bigint_in_list_selective', family="expression").source) # or family="pandas"Source
Query text: benchbox/core/read_primitives/queries.py