Cloud Sorted Ingestion
BenchBox supports an opt-in sorted-ingestion strategy for cloud data warehouse runs so you can compare:
- Deep sorted ingestion
- Platform-native tuning (for example clustering or Z-ORDER)
- Baseline runs with no sorted-ingestion rewrite
Strategy Controls
Use unified tuning platform_optimizations:
platform_optimizations: sorted_ingestion_mode: force sorted_ingestion_method: ctassorted_ingestion_mode:
off: disable sorted ingestionauto: enable only when the platform capability matrix supports a methodforce: require sorted ingestion, fail if unsupported
sorted_ingestion_method:
auto: choose platform defaultctas: use CTAS rewrite flow where availablez_order: Databricks Z-ORDER pathliquid_clustering: Databricks liquid clustering pathvacuum_sort: Redshift vacuum sort path
CLI Overrides
You can override strategy at runtime:
benchbox run \ --platform snowflake \ --benchmark tpch \ --scale 1 \ --tuning ./unified_tuning.yaml \ --sorted-ingestion-mode force \ --sorted-ingestion-method ctasComparison Workflow
-
Run baseline:
Terminal window benchbox run --platform snowflake --benchmark tpch --scale 1 --tuning notuning -
Run platform-native tuning:
Terminal window benchbox run --platform snowflake --benchmark tpch --scale 1 --tuning ./snowflake-native.yaml -
Run deep-sorted ingestion:
Terminal window benchbox run --platform snowflake --benchmark tpch --scale 1 --tuning ./snowflake-sorted.yaml -
Compare result files:
Terminal window benchbox compare <baseline.json> <native.json> <sorted.json>
Platform Notes
- Snowflake: supports
ctassorted-ingestion path when mode is enabled. - Databricks: supports
ctas,z_order, andliquid_clusteringstrategy methods. TPC templates now distinguish legacydatabricks_z_orderfromdatabricks_liquid_auto; do not combine Liquid Clustering with ZORDER or per-table partitioning fields. - Redshift: supports
vacuum_sort. Thectasmethod is accepted but runs no SQL: a CTAS copy would lose the distribution style, distribution key, column encodings and constraints, and itsORDER BYdoes not set a sort key. The run records the sort as not applied, with that reason. - Amazon Athena and Azure Synapse Analytics: the
ctasmethod is accepted but runs no SQL, and the run records the sort as not applied with the reason. Athena cannot rewrite a table from itself, and Synapse would need a swap that keeps the original distribution and columnstore index. - BigQuery: forcing sorted ingestion currently returns an actionable error for CTAS-hook execution path.
- ClickHouse Cloud: post-load sorted ingestion is unsupported; use table
ORDER BYat create time.
Result Metadata
BenchBox writes sorted-ingestion metadata into execution_metadata.sorted_ingestion:
- Configured mode/method
- Resolved mode/method
- Platform capability details
- Applied table list/count
- Total sorted-ingestion apply time