benchbox 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- benchbox/__init__.py +1 -1
- benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query72.tpl +1 -1
- benchbox/_binaries/tpc-ds/{darwin-x86_64/query_templates/ansi.tpl → templates/query_templates/sqlserver.tpl} +1 -1
- benchbox/_binaries/tpc-ds/templates/query_variants/README +6 -0
- benchbox/_binaries/tpc-ds/{linux-arm64/query_templates/query10.tpl → templates/query_variants/query10a.tpl} +13 -14
- benchbox/_binaries/tpc-ds/{darwin-x86_64/query_templates/query14.tpl → templates/query_variants/query14a.tpl} +30 -26
- benchbox/_binaries/tpc-ds/{linux-arm64/query_templates/query18.tpl → templates/query_variants/query18a.tpl} +40 -19
- benchbox/_binaries/tpc-ds/{linux-arm64/query_templates/query22.tpl → templates/query_variants/query22a.tpl} +31 -9
- benchbox/_binaries/tpc-ds/{darwin-x86_64/query_templates/query27.tpl → templates/query_variants/query27a.tpl} +23 -10
- benchbox/_binaries/tpc-ds/{linux-arm64/query_templates/query35.tpl → templates/query_variants/query35a.tpl} +9 -8
- benchbox/_binaries/tpc-ds/{linux-arm64/query_templates/query36.tpl → templates/query_variants/query36a.tpl} +24 -12
- benchbox/_binaries/tpc-ds/{linux-arm64/query_templates/query51.tpl → templates/query_variants/query51a.tpl} +37 -20
- benchbox/_binaries/tpc-ds/{linux-arm64/query_templates/query5.tpl → templates/query_variants/query5a.tpl} +15 -10
- benchbox/_binaries/tpc-ds/{linux-arm64/query_templates/query67.tpl → templates/query_variants/query67a.tpl} +46 -18
- benchbox/_binaries/tpc-ds/{linux-arm64/query_templates/query70.tpl → templates/query_variants/query70a.tpl} +31 -27
- benchbox/_binaries/tpc-ds/{linux-arm64/query_templates/query77.tpl → templates/query_variants/query77a.tpl} +22 -15
- benchbox/_binaries/tpc-ds/{linux-arm64/query_templates/query80.tpl → templates/query_variants/query80a.tpl} +22 -8
- benchbox/_binaries/tpc-ds/{linux-arm64/query_templates/query86.tpl → templates/query_variants/query86a.tpl} +22 -13
- benchbox/_binaries/tpc-h/templates/dists.dss +836 -0
- benchbox/_binaries/tpc-h/templates/queries/1.sql +28 -0
- benchbox/_binaries/tpc-h/templates/queries/10.sql +38 -0
- benchbox/_binaries/tpc-h/templates/queries/11.sql +34 -0
- benchbox/_binaries/tpc-h/templates/queries/12.sql +35 -0
- benchbox/_binaries/tpc-h/templates/queries/13.sql +27 -0
- benchbox/_binaries/tpc-h/templates/queries/14.sql +20 -0
- benchbox/_binaries/tpc-h/templates/queries/15.sql +40 -0
- benchbox/_binaries/tpc-h/templates/queries/16.sql +37 -0
- benchbox/_binaries/tpc-h/templates/queries/17.sql +24 -0
- benchbox/_binaries/tpc-h/templates/queries/18.sql +39 -0
- benchbox/_binaries/tpc-h/templates/queries/19.sql +42 -0
- benchbox/_binaries/tpc-h/templates/queries/2.sql +50 -0
- benchbox/_binaries/tpc-h/templates/queries/20.sql +44 -0
- benchbox/_binaries/tpc-h/templates/queries/21.sql +46 -0
- benchbox/_binaries/tpc-h/templates/queries/22.sql +44 -0
- benchbox/_binaries/tpc-h/templates/queries/3.sql +29 -0
- benchbox/_binaries/tpc-h/templates/queries/4.sql +28 -0
- benchbox/_binaries/tpc-h/templates/queries/5.sql +31 -0
- benchbox/_binaries/tpc-h/templates/queries/6.sql +16 -0
- benchbox/_binaries/tpc-h/templates/queries/7.sql +46 -0
- benchbox/_binaries/tpc-h/templates/queries/8.sql +44 -0
- benchbox/_binaries/tpc-h/templates/queries/9.sql +39 -0
- benchbox/_binaries/tpc-h/templates/variants/12a.sql +27 -0
- benchbox/_binaries/tpc-h/templates/variants/13a.sql +30 -0
- benchbox/_binaries/tpc-h/templates/variants/14a.sql +18 -0
- benchbox/_binaries/tpc-h/templates/variants/15a.sql +39 -0
- benchbox/_binaries/tpc-h/templates/variants/8a.sql +77 -0
- benchbox/base.py +88 -121
- benchbox/cli/benchmarks.py +3 -3
- benchbox/cli/commands/calculate_qphh.py +55 -14
- benchbox/cli/commands/checks.py +1 -4
- benchbox/cli/commands/convert.py +8 -3
- benchbox/cli/commands/metrics.py +55 -14
- benchbox/cli/commands/results.py +131 -3
- benchbox/cli/commands/run.py +157 -22
- benchbox/cli/commands/visualize.py +3 -3
- benchbox/cli/composite_params.py +1 -1
- benchbox/cli/config.py +13 -3
- benchbox/cli/database.py +3 -3
- benchbox/cli/dryrun.py +30 -4
- benchbox/cli/exceptions.py +2 -1
- benchbox/cli/execution_pipeline.py +2 -1
- benchbox/cli/orchestrator.py +25 -71
- benchbox/cli/tuning.py +1 -1
- benchbox/core/ai_primitives/benchmark.py +53 -0
- benchbox/core/ai_primitives/dataframe_operations.py +1217 -0
- benchbox/core/base_benchmark.py +90 -68
- benchbox/core/coffeeshop/queries.py +1 -1
- benchbox/core/coffeeshop/schema.py +1 -1
- benchbox/core/comparison/plotter.py +5 -4
- benchbox/core/dataframe/__init__.py +26 -0
- benchbox/core/dataframe/benchmark_suite.py +5 -4
- benchbox/core/dataframe/context.py +45 -0
- benchbox/core/dataframe/data_loader.py +180 -79
- benchbox/core/dataframe/maintenance_interface.py +866 -0
- benchbox/core/dryrun.py +152 -22
- benchbox/core/expected_results/registry.py +22 -5
- benchbox/core/manifest/io.py +4 -3
- benchbox/core/metadata_primitives/__init__.py +31 -0
- benchbox/core/metadata_primitives/benchmark.py +337 -0
- benchbox/core/metadata_primitives/dataframe_operations.py +1824 -0
- benchbox/core/platform_registry.py +134 -45
- benchbox/core/read_primitives/benchmark.py +56 -4
- benchbox/core/read_primitives/dataframe_queries.py +6547 -0
- benchbox/core/results/__init__.py +47 -6
- benchbox/core/results/builder.py +909 -0
- benchbox/core/results/database.py +5 -5
- benchbox/core/results/exporter.py +58 -96
- benchbox/core/results/filenames.py +102 -0
- benchbox/core/results/loader.py +10 -9
- benchbox/core/results/metrics.py +211 -0
- benchbox/core/results/models.py +3 -1
- benchbox/core/results/normalizer.py +346 -0
- benchbox/core/results/platform_info.py +235 -0
- benchbox/core/results/query_normalizer.py +200 -0
- benchbox/core/results/schema.py +368 -69
- benchbox/core/runner/conversion.py +2 -0
- benchbox/core/runner/dataframe_runner.py +135 -131
- benchbox/core/runner/runner.py +111 -18
- benchbox/core/schemas.py +145 -3
- benchbox/core/ssb/generator.py +14 -2
- benchbox/core/tpc_compliance.py +4 -4
- benchbox/core/tpc_metrics.py +9 -4
- benchbox/core/tpcdi/generator/manifest.py +15 -2
- benchbox/core/tpcds/benchmark/runner.py +3 -7
- benchbox/core/tpcds/c_tools.py +34 -28
- benchbox/core/tpcds/dataframe_queries/queries.py +44 -21
- benchbox/core/tpcds/generator/filesystem.py +23 -11
- benchbox/core/tpcds/generator/manager.py +3 -2
- benchbox/core/tpcds/maintenance_test.py +281 -0
- benchbox/core/tpcds/power_test.py +21 -11
- benchbox/core/tpcds/throughput_test.py +27 -9
- benchbox/core/tpcds_obt/etl/transformer.py +24 -5
- benchbox/core/tpch/dataframe_queries.py +46 -43
- benchbox/core/tpch/generator.py +21 -8
- benchbox/core/tpch/maintenance_test.py +87 -0
- benchbox/core/tpch/power_test.py +21 -5
- benchbox/core/tpch/queries.py +2 -7
- benchbox/core/tpch/streams.py +3 -19
- benchbox/core/transaction_primitives/benchmark.py +99 -0
- benchbox/core/transaction_primitives/dataframe_operations.py +1294 -0
- benchbox/core/transaction_primitives/generator.py +11 -4
- benchbox/core/visualization/__init__.py +2 -2
- benchbox/core/visualization/charts.py +4 -4
- benchbox/core/visualization/dependencies.py +1 -12
- benchbox/core/visualization/exporters.py +15 -26
- benchbox/core/visualization/result_plotter.py +90 -49
- benchbox/core/visualization/templates.py +6 -6
- benchbox/core/write_primitives/__init__.py +13 -0
- benchbox/core/write_primitives/benchmark.py +66 -0
- benchbox/core/write_primitives/dataframe_operations.py +912 -0
- benchbox/core/write_primitives/generator.py +11 -4
- benchbox/mcp/__init__.py +5 -1
- benchbox/mcp/errors.py +29 -0
- benchbox/mcp/resources/registry.py +12 -7
- benchbox/mcp/schemas.py +62 -0
- benchbox/mcp/server.py +17 -14
- benchbox/mcp/tools/__init__.py +3 -0
- benchbox/mcp/tools/analytics.py +550 -582
- benchbox/mcp/tools/benchmark.py +603 -611
- benchbox/mcp/tools/discovery.py +156 -205
- benchbox/mcp/tools/results.py +332 -533
- benchbox/mcp/tools/visualization.py +449 -0
- benchbox/platforms/__init__.py +740 -622
- benchbox/platforms/adapter_factory.py +6 -6
- benchbox/platforms/azure_synapse.py +3 -7
- benchbox/platforms/base/adapter.py +189 -49
- benchbox/platforms/base/cloud_spark/config.py +8 -0
- benchbox/platforms/base/cloud_spark/mixins.py +96 -0
- benchbox/platforms/base/cloud_spark/session.py +4 -2
- benchbox/platforms/base/cloud_spark/staging.py +15 -7
- benchbox/platforms/base/data_loading.py +315 -1
- benchbox/platforms/base/format_capabilities.py +37 -2
- benchbox/platforms/base/utils.py +6 -4
- benchbox/platforms/bigquery.py +5 -6
- benchbox/platforms/clickhouse_cloud.py +263 -0
- benchbox/platforms/databricks/adapter.py +16 -15
- benchbox/platforms/databricks/dataframe_adapter.py +4 -1
- benchbox/platforms/dataframe/__init__.py +31 -0
- benchbox/platforms/dataframe/benchmark_mixin.py +779 -0
- benchbox/platforms/dataframe/cudf_df.py +3 -3
- benchbox/platforms/dataframe/dask_df.py +3 -3
- benchbox/platforms/dataframe/datafusion_df.py +152 -15
- benchbox/platforms/dataframe/delta_lake_maintenance.py +341 -0
- benchbox/platforms/dataframe/ducklake_maintenance.py +402 -0
- benchbox/platforms/dataframe/expression_family.py +47 -8
- benchbox/platforms/dataframe/hudi_maintenance.py +437 -0
- benchbox/platforms/dataframe/iceberg_maintenance.py +605 -0
- benchbox/platforms/dataframe/modin_df.py +3 -3
- benchbox/platforms/dataframe/pandas_df.py +3 -3
- benchbox/platforms/dataframe/pandas_family.py +59 -8
- benchbox/platforms/dataframe/platform_checker.py +16 -49
- benchbox/platforms/dataframe/polars_df.py +14 -12
- benchbox/platforms/dataframe/polars_maintenance.py +630 -0
- benchbox/platforms/dataframe/pyspark_df.py +15 -0
- benchbox/platforms/dataframe/pyspark_maintenance.py +613 -0
- benchbox/platforms/datafusion.py +5 -6
- benchbox/platforms/duckdb.py +2 -1
- benchbox/platforms/fabric_warehouse.py +15 -15
- benchbox/platforms/firebolt.py +3 -2
- benchbox/platforms/influxdb/adapter.py +7 -3
- benchbox/platforms/motherduck.py +3 -2
- benchbox/platforms/onehouse/__init__.py +39 -0
- benchbox/platforms/onehouse/onehouse_client.py +509 -0
- benchbox/platforms/onehouse/quanton_adapter.py +646 -0
- benchbox/platforms/postgresql.py +5 -9
- benchbox/platforms/presto.py +2 -2
- benchbox/platforms/pyspark/session.py +3 -3
- benchbox/platforms/pyspark/sql_adapter.py +2 -3
- benchbox/platforms/redshift.py +7 -7
- benchbox/platforms/snowflake.py +4 -4
- benchbox/platforms/snowpark_connect.py +2 -1
- benchbox/platforms/trino.py +2 -2
- benchbox/release/__init__.py +17 -0
- benchbox/release/content_validation.py +745 -0
- benchbox/release/workflow.py +17 -0
- benchbox/utils/VERSION_MANAGEMENT.md +1 -1
- benchbox/utils/cloud_storage.py +7 -5
- benchbox/utils/compression.py +8 -8
- benchbox/utils/compression_mixin.py +2 -1
- benchbox/utils/data_validation.py +23 -14
- benchbox/utils/dependencies.py +47 -7
- benchbox/utils/file_format.py +407 -0
- benchbox/utils/format_converters/__init__.py +5 -1
- benchbox/utils/format_converters/ducklake_converter.py +227 -0
- benchbox/utils/format_converters/vortex_converter.py +168 -0
- benchbox/utils/tpc_compilation.py +43 -0
- benchbox/utils/version.py +14 -2
- {benchbox-0.1.0.dist-info → benchbox-0.1.1.dist-info}/METADATA +15 -15
- benchbox-0.1.1.dist-info/RECORD +839 -0
- {benchbox-0.1.0.dist-info → benchbox-0.1.1.dist-info}/WHEEL +1 -1
- benchbox/_binaries/tpc-ds/darwin-arm64/query_templates/sqlserver.tpl +0 -37
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/README +0 -4
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/db2.tpl +0 -38
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/netezza.tpl +0 -38
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/oracle.tpl +0 -38
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query1.tpl +0 -62
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query10.tpl +0 -98
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query11.tpl +0 -119
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query12.tpl +0 -72
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query13.tpl +0 -89
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query15.tpl +0 -56
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query16.tpl +0 -76
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query17.tpl +0 -80
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query18.tpl +0 -73
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query19.tpl +0 -64
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query2.tpl +0 -94
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query20.tpl +0 -67
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query21.tpl +0 -65
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query22.tpl +0 -54
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query23.tpl +0 -144
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query24.tpl +0 -147
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query25.tpl +0 -84
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query26.tpl +0 -61
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query28.tpl +0 -90
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query29.tpl +0 -85
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query3.tpl +0 -58
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query30.tpl +0 -66
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query31.tpl +0 -88
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query32.tpl +0 -65
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query33.tpl +0 -113
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query34.tpl +0 -77
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query35.tpl +0 -98
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query36.tpl +0 -74
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query37.tpl +0 -57
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query38.tpl +0 -58
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query39.tpl +0 -93
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query4.tpl +0 -154
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query40.tpl +0 -63
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query41.tpl +0 -90
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query42.tpl +0 -64
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query43.tpl +0 -55
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query44.tpl +0 -72
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query45.tpl +0 -56
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query46.tpl +0 -78
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query47.tpl +0 -89
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query48.tpl +0 -104
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query49.tpl +0 -164
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query5.tpl +0 -165
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query50.tpl +0 -96
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query51.tpl +0 -80
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query52.tpl +0 -59
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query53.tpl +0 -64
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query54.tpl +0 -95
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query55.tpl +0 -52
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query56.tpl +0 -108
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query57.tpl +0 -87
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query58.tpl +0 -101
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query59.tpl +0 -79
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query6.tpl +0 -62
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query60.tpl +0 -115
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query61.tpl +0 -83
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query62.tpl +0 -71
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query63.tpl +0 -64
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query64.tpl +0 -157
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query65.tpl +0 -62
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query66.tpl +0 -261
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query67.tpl +0 -81
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query68.tpl +0 -82
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query69.tpl +0 -85
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query7.tpl +0 -60
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query70.tpl +0 -73
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query71.tpl +0 -74
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query72.tpl +0 -67
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query73.tpl +0 -69
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query74.tpl +0 -99
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query75.tpl +0 -107
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query76.tpl +0 -64
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query77.tpl +0 -145
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query78.tpl +0 -94
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query79.tpl +0 -60
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query8.tpl +0 -144
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query80.tpl +0 -131
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query81.tpl +0 -68
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query82.tpl +0 -56
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query83.tpl +0 -104
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query84.tpl +0 -58
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query85.tpl +0 -121
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query86.tpl +0 -60
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query87.tpl +0 -56
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query88.tpl +0 -128
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query89.tpl +0 -75
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query9.tpl +0 -88
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query90.tpl +0 -58
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query91.tpl +0 -68
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query92.tpl +0 -68
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query93.tpl +0 -53
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query94.tpl +0 -67
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query95.tpl +0 -71
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query96.tpl +0 -52
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query97.tpl +0 -62
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query98.tpl +0 -70
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/query99.tpl +0 -69
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/sqlserver.tpl +0 -37
- benchbox/_binaries/tpc-ds/darwin-x86_64/query_templates/templates.lst +0 -99
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/README +0 -4
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/ansi.tpl +0 -38
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/db2.tpl +0 -38
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/netezza.tpl +0 -38
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/oracle.tpl +0 -38
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query1.tpl +0 -62
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query11.tpl +0 -119
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query12.tpl +0 -72
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query13.tpl +0 -89
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query14.tpl +0 -247
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query15.tpl +0 -56
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query16.tpl +0 -76
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query17.tpl +0 -80
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query19.tpl +0 -64
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query2.tpl +0 -94
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query20.tpl +0 -67
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query21.tpl +0 -65
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query23.tpl +0 -144
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query24.tpl +0 -147
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query25.tpl +0 -84
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query26.tpl +0 -61
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query27.tpl +0 -68
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query28.tpl +0 -90
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query29.tpl +0 -85
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query3.tpl +0 -58
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query30.tpl +0 -66
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query31.tpl +0 -88
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query32.tpl +0 -65
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query33.tpl +0 -113
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query34.tpl +0 -77
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query37.tpl +0 -57
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query38.tpl +0 -58
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query39.tpl +0 -93
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query4.tpl +0 -154
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query40.tpl +0 -63
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query41.tpl +0 -90
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query42.tpl +0 -64
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query43.tpl +0 -55
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query44.tpl +0 -72
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query45.tpl +0 -56
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query46.tpl +0 -78
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query47.tpl +0 -89
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query48.tpl +0 -104
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query49.tpl +0 -164
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query50.tpl +0 -96
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query52.tpl +0 -59
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query53.tpl +0 -64
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query54.tpl +0 -95
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query55.tpl +0 -52
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query56.tpl +0 -108
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query57.tpl +0 -87
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query58.tpl +0 -101
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query59.tpl +0 -79
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query6.tpl +0 -62
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query60.tpl +0 -115
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query61.tpl +0 -83
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query62.tpl +0 -71
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query63.tpl +0 -64
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query64.tpl +0 -157
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query65.tpl +0 -62
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query66.tpl +0 -261
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query68.tpl +0 -82
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query69.tpl +0 -85
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query7.tpl +0 -60
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query71.tpl +0 -74
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query72.tpl +0 -67
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query73.tpl +0 -69
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query74.tpl +0 -99
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query75.tpl +0 -107
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query76.tpl +0 -64
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query78.tpl +0 -94
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query79.tpl +0 -60
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query8.tpl +0 -144
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query81.tpl +0 -68
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query82.tpl +0 -56
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query83.tpl +0 -104
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query84.tpl +0 -58
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query85.tpl +0 -121
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query87.tpl +0 -56
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query88.tpl +0 -128
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query89.tpl +0 -75
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query9.tpl +0 -88
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query90.tpl +0 -58
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query91.tpl +0 -68
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query92.tpl +0 -68
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query93.tpl +0 -53
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query94.tpl +0 -67
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query95.tpl +0 -71
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query96.tpl +0 -52
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query97.tpl +0 -62
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query98.tpl +0 -70
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/query99.tpl +0 -69
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/sqlserver.tpl +0 -37
- benchbox/_binaries/tpc-ds/linux-arm64/query_templates/templates.lst +0 -99
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/README +0 -4
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/ansi.tpl +0 -38
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/db2.tpl +0 -38
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/netezza.tpl +0 -38
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/oracle.tpl +0 -38
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query1.tpl +0 -62
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query10.tpl +0 -98
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query11.tpl +0 -119
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query12.tpl +0 -72
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query13.tpl +0 -89
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query14.tpl +0 -247
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query15.tpl +0 -56
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query16.tpl +0 -76
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query17.tpl +0 -80
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query18.tpl +0 -73
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query19.tpl +0 -64
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query2.tpl +0 -94
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query20.tpl +0 -67
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query21.tpl +0 -65
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query22.tpl +0 -54
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query23.tpl +0 -144
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query24.tpl +0 -147
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query25.tpl +0 -84
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query26.tpl +0 -61
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query27.tpl +0 -68
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query28.tpl +0 -90
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query29.tpl +0 -85
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query3.tpl +0 -58
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query30.tpl +0 -66
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query31.tpl +0 -88
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query32.tpl +0 -65
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query33.tpl +0 -113
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query34.tpl +0 -77
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query35.tpl +0 -98
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query36.tpl +0 -74
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query37.tpl +0 -57
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query38.tpl +0 -58
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query39.tpl +0 -93
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query4.tpl +0 -154
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query40.tpl +0 -63
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query41.tpl +0 -90
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query42.tpl +0 -64
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query43.tpl +0 -55
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query44.tpl +0 -72
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query45.tpl +0 -56
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query46.tpl +0 -78
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query47.tpl +0 -89
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query48.tpl +0 -104
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query49.tpl +0 -164
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query5.tpl +0 -165
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query50.tpl +0 -96
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query51.tpl +0 -80
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query52.tpl +0 -59
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query53.tpl +0 -64
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query54.tpl +0 -95
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query55.tpl +0 -52
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query56.tpl +0 -108
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query57.tpl +0 -87
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query58.tpl +0 -101
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query59.tpl +0 -79
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query6.tpl +0 -62
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query60.tpl +0 -115
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query61.tpl +0 -83
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query62.tpl +0 -71
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query63.tpl +0 -64
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query64.tpl +0 -157
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query65.tpl +0 -62
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query66.tpl +0 -261
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query67.tpl +0 -81
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query68.tpl +0 -82
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query69.tpl +0 -85
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query7.tpl +0 -60
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query70.tpl +0 -73
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query71.tpl +0 -74
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query72.tpl +0 -67
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query73.tpl +0 -69
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query74.tpl +0 -99
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query75.tpl +0 -107
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query76.tpl +0 -64
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query77.tpl +0 -145
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query78.tpl +0 -94
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query79.tpl +0 -60
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query8.tpl +0 -144
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query80.tpl +0 -131
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query81.tpl +0 -68
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query82.tpl +0 -56
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query83.tpl +0 -104
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query84.tpl +0 -58
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query85.tpl +0 -121
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query86.tpl +0 -60
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query87.tpl +0 -56
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query88.tpl +0 -128
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query89.tpl +0 -75
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query9.tpl +0 -88
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query90.tpl +0 -58
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query91.tpl +0 -68
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query92.tpl +0 -68
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query93.tpl +0 -53
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query94.tpl +0 -67
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query95.tpl +0 -71
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query96.tpl +0 -52
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query97.tpl +0 -62
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query98.tpl +0 -70
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/query99.tpl +0 -69
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/sqlserver.tpl +0 -37
- benchbox/_binaries/tpc-ds/linux-x86_64/query_templates/templates.lst +0 -99
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/README +0 -4
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/ansi.tpl +0 -38
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/db2.tpl +0 -38
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/netezza.tpl +0 -38
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/oracle.tpl +0 -38
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query1.tpl +0 -62
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query10.tpl +0 -98
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query11.tpl +0 -119
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query12.tpl +0 -72
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query13.tpl +0 -89
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query14.tpl +0 -247
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query15.tpl +0 -56
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query16.tpl +0 -76
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query17.tpl +0 -80
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query18.tpl +0 -73
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query19.tpl +0 -64
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query2.tpl +0 -94
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query20.tpl +0 -67
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query21.tpl +0 -65
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query22.tpl +0 -54
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query23.tpl +0 -144
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query24.tpl +0 -147
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query25.tpl +0 -84
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query26.tpl +0 -61
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query27.tpl +0 -68
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query28.tpl +0 -90
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query29.tpl +0 -85
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query3.tpl +0 -58
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query30.tpl +0 -66
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query31.tpl +0 -88
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query32.tpl +0 -65
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query33.tpl +0 -113
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query34.tpl +0 -77
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query35.tpl +0 -98
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query36.tpl +0 -74
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query37.tpl +0 -57
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query38.tpl +0 -58
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query39.tpl +0 -93
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query4.tpl +0 -154
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query40.tpl +0 -63
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query41.tpl +0 -90
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query42.tpl +0 -64
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query43.tpl +0 -55
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query44.tpl +0 -72
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query45.tpl +0 -56
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query46.tpl +0 -78
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query47.tpl +0 -89
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query48.tpl +0 -104
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query49.tpl +0 -164
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query5.tpl +0 -165
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query50.tpl +0 -96
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query51.tpl +0 -80
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query52.tpl +0 -59
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query53.tpl +0 -64
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query54.tpl +0 -95
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query55.tpl +0 -52
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query56.tpl +0 -108
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query57.tpl +0 -87
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query58.tpl +0 -101
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query59.tpl +0 -79
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query6.tpl +0 -62
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query60.tpl +0 -115
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query61.tpl +0 -83
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query62.tpl +0 -71
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query63.tpl +0 -64
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query64.tpl +0 -157
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query65.tpl +0 -62
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query66.tpl +0 -261
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query67.tpl +0 -81
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query68.tpl +0 -82
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query69.tpl +0 -85
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query7.tpl +0 -60
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query70.tpl +0 -73
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query71.tpl +0 -74
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query72.tpl +0 -67
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query73.tpl +0 -69
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query74.tpl +0 -99
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query75.tpl +0 -107
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query76.tpl +0 -64
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query77.tpl +0 -145
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query78.tpl +0 -94
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query79.tpl +0 -60
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query8.tpl +0 -144
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query80.tpl +0 -131
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query81.tpl +0 -68
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query82.tpl +0 -56
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query83.tpl +0 -104
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query84.tpl +0 -58
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query85.tpl +0 -121
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query86.tpl +0 -60
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query87.tpl +0 -56
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query88.tpl +0 -128
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query89.tpl +0 -75
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query9.tpl +0 -88
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query90.tpl +0 -58
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query91.tpl +0 -68
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query92.tpl +0 -68
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query93.tpl +0 -53
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query94.tpl +0 -67
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query95.tpl +0 -71
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query96.tpl +0 -52
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query97.tpl +0 -62
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query98.tpl +0 -70
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/query99.tpl +0 -69
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/sqlserver.tpl +0 -37
- benchbox/_binaries/tpc-ds/windows-x86_64/query_templates/templates.lst +0 -99
- benchbox-0.1.0.dist-info/RECORD +0 -1192
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/README +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/ansi.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/db2.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/netezza.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/oracle.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query1.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query10.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query11.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query12.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query13.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query14.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query15.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query16.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query17.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query18.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query19.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query2.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query20.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query21.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query22.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query23.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query24.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query25.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query26.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query27.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query28.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query29.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query3.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query30.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query31.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query32.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query33.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query34.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query35.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query36.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query37.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query38.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query39.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query4.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query40.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query41.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query42.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query43.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query44.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query45.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query46.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query47.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query48.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query49.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query5.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query50.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query51.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query52.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query53.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query54.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query55.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query56.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query57.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query58.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query59.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query6.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query60.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query61.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query62.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query63.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query64.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query65.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query66.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query67.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query68.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query69.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query7.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query70.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query71.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query73.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query74.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query75.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query76.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query77.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query78.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query79.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query8.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query80.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query81.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query82.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query83.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query84.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query85.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query86.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query87.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query88.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query89.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query9.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query90.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query91.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query92.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query93.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query94.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query95.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query96.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query97.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query98.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/query99.tpl +0 -0
- /benchbox/_binaries/tpc-ds/{darwin-arm64 → templates}/query_templates/templates.lst +0 -0
- {benchbox-0.1.0.dist-info → benchbox-0.1.1.dist-info}/entry_points.txt +0 -0
- {benchbox-0.1.0.dist-info → benchbox-0.1.1.dist-info}/licenses/LICENSE +0 -0
- {benchbox-0.1.0.dist-info → benchbox-0.1.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,779 @@
|
|
|
1
|
+
"""Benchmark execution mixin for DataFrame adapters.
|
|
2
|
+
|
|
3
|
+
This module provides the BenchmarkExecutionMixin that adds run_benchmark()
|
|
4
|
+
capability to DataFrame adapters, enabling unified interface with SQL adapters.
|
|
5
|
+
|
|
6
|
+
Copyright 2026 Joe Harris / BenchBox Project
|
|
7
|
+
|
|
8
|
+
Licensed under the MIT License. See LICENSE file in the project root for details.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
import logging
|
|
14
|
+
import time
|
|
15
|
+
from abc import abstractmethod
|
|
16
|
+
from dataclasses import dataclass
|
|
17
|
+
from pathlib import Path
|
|
18
|
+
from typing import TYPE_CHECKING, Any
|
|
19
|
+
|
|
20
|
+
from benchbox.core.config import BenchmarkConfig, SystemProfile
|
|
21
|
+
from benchbox.core.constants import (
|
|
22
|
+
GENERIC_POWER_DEFAULT_MEASUREMENT_ITERATIONS,
|
|
23
|
+
GENERIC_POWER_DEFAULT_WARMUP_ITERATIONS,
|
|
24
|
+
)
|
|
25
|
+
from benchbox.core.dataframe import (
|
|
26
|
+
check_sufficient_memory,
|
|
27
|
+
format_memory_warning,
|
|
28
|
+
validate_scale_factor,
|
|
29
|
+
)
|
|
30
|
+
from benchbox.core.dataframe.data_loader import DataFrameDataLoader, get_tpch_column_names
|
|
31
|
+
from benchbox.core.results import (
|
|
32
|
+
BenchmarkInfoInput,
|
|
33
|
+
ResultBuilder,
|
|
34
|
+
build_platform_info,
|
|
35
|
+
normalize_query_result,
|
|
36
|
+
)
|
|
37
|
+
from benchbox.core.results.builder import RunConfigInput, normalize_benchmark_id
|
|
38
|
+
from benchbox.core.results.models import (
|
|
39
|
+
BenchmarkResults,
|
|
40
|
+
TableLoadingStats,
|
|
41
|
+
)
|
|
42
|
+
from benchbox.utils.printing import quiet_console
|
|
43
|
+
|
|
44
|
+
if TYPE_CHECKING:
|
|
45
|
+
from benchbox.core.dataframe.query import DataFrameQuery
|
|
46
|
+
|
|
47
|
+
logger = logging.getLogger(__name__)
|
|
48
|
+
|
|
49
|
+
console = quiet_console
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@dataclass
|
|
53
|
+
class DataFramePhases:
|
|
54
|
+
"""Phases for DataFrame benchmark execution."""
|
|
55
|
+
|
|
56
|
+
load: bool = True
|
|
57
|
+
execute: bool = True
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
@dataclass
|
|
61
|
+
class DataFrameRunOptions:
|
|
62
|
+
"""Options for DataFrame benchmark execution."""
|
|
63
|
+
|
|
64
|
+
ignore_memory_warnings: bool = False
|
|
65
|
+
force_regenerate: bool = False
|
|
66
|
+
prefer_parquet: bool = True
|
|
67
|
+
cache_dir: Path | None = None
|
|
68
|
+
verbose: bool = False
|
|
69
|
+
very_verbose: bool = False
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class DataLoadingError(RuntimeError):
|
|
73
|
+
"""Raised when DataFrame data loading fails critically."""
|
|
74
|
+
|
|
75
|
+
def __init__(
|
|
76
|
+
self,
|
|
77
|
+
message: str,
|
|
78
|
+
table_stats: dict[str, int] | None = None,
|
|
79
|
+
per_table_stats: dict[str, TableLoadingStats] | None = None,
|
|
80
|
+
) -> None:
|
|
81
|
+
super().__init__(message)
|
|
82
|
+
self.table_stats = table_stats or {}
|
|
83
|
+
self.per_table_stats = per_table_stats or {}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class BenchmarkExecutionMixin:
|
|
87
|
+
"""Mixin providing run_benchmark() for DataFrame adapters.
|
|
88
|
+
|
|
89
|
+
This mixin adds unified benchmark execution capability to DataFrame
|
|
90
|
+
adapters, enabling them to be used interchangeably with SQL adapters.
|
|
91
|
+
|
|
92
|
+
The adapter must provide:
|
|
93
|
+
- platform_name: str property
|
|
94
|
+
- family: str property ("expression" or "pandas")
|
|
95
|
+
- create_context() method
|
|
96
|
+
- load_table() method
|
|
97
|
+
- execute_query() method
|
|
98
|
+
- get_platform_info() method (optional)
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
# These must be provided by the adapter class
|
|
102
|
+
platform_name: str
|
|
103
|
+
family: str
|
|
104
|
+
|
|
105
|
+
@abstractmethod
|
|
106
|
+
def create_context(self) -> Any:
|
|
107
|
+
"""Create execution context."""
|
|
108
|
+
|
|
109
|
+
@abstractmethod
|
|
110
|
+
def load_table(
|
|
111
|
+
self,
|
|
112
|
+
ctx: Any,
|
|
113
|
+
table_name: str,
|
|
114
|
+
file_paths: list[Path],
|
|
115
|
+
column_names: list[str] | None = None,
|
|
116
|
+
) -> int:
|
|
117
|
+
"""Load a table into context."""
|
|
118
|
+
|
|
119
|
+
@abstractmethod
|
|
120
|
+
def execute_query(
|
|
121
|
+
self,
|
|
122
|
+
ctx: Any,
|
|
123
|
+
query: DataFrameQuery,
|
|
124
|
+
query_id: str | None = None,
|
|
125
|
+
) -> dict[str, Any]:
|
|
126
|
+
"""Execute a query."""
|
|
127
|
+
|
|
128
|
+
def get_platform_info(self) -> dict[str, Any]:
|
|
129
|
+
"""Get platform information. Override in subclass for details."""
|
|
130
|
+
return {"platform": self.platform_name, "family": self.family}
|
|
131
|
+
|
|
132
|
+
def run_benchmark(
|
|
133
|
+
self,
|
|
134
|
+
benchmark: Any,
|
|
135
|
+
*,
|
|
136
|
+
benchmark_config: BenchmarkConfig | None = None,
|
|
137
|
+
system_profile: SystemProfile | None = None,
|
|
138
|
+
data_dir: Path | None = None,
|
|
139
|
+
phases: DataFramePhases | None = None,
|
|
140
|
+
options: DataFrameRunOptions | None = None,
|
|
141
|
+
monitor: Any | None = None,
|
|
142
|
+
**run_config: Any,
|
|
143
|
+
) -> BenchmarkResults:
|
|
144
|
+
"""Run a benchmark using DataFrame mode execution.
|
|
145
|
+
|
|
146
|
+
This method provides a unified interface matching SQL adapters,
|
|
147
|
+
allowing DataFrame adapters to be used interchangeably.
|
|
148
|
+
|
|
149
|
+
Args:
|
|
150
|
+
benchmark: Benchmark instance with query definitions
|
|
151
|
+
benchmark_config: Optional explicit benchmark configuration.
|
|
152
|
+
If not provided, extracted from benchmark instance.
|
|
153
|
+
system_profile: System profile for resource information
|
|
154
|
+
data_dir: Directory containing benchmark data files
|
|
155
|
+
phases: Which phases to execute (default: load and execute)
|
|
156
|
+
options: DataFrame-specific execution options
|
|
157
|
+
monitor: Performance monitor for tracking
|
|
158
|
+
**run_config: Additional configuration options
|
|
159
|
+
|
|
160
|
+
Returns:
|
|
161
|
+
BenchmarkResults with execution details
|
|
162
|
+
"""
|
|
163
|
+
phases = phases or DataFramePhases()
|
|
164
|
+
if isinstance(options, dict):
|
|
165
|
+
options = DataFrameRunOptions(**options)
|
|
166
|
+
else:
|
|
167
|
+
options = options or DataFrameRunOptions()
|
|
168
|
+
|
|
169
|
+
# Extract benchmark_config from benchmark if not provided
|
|
170
|
+
if benchmark_config is None:
|
|
171
|
+
benchmark_config = self._extract_benchmark_config(benchmark, run_config)
|
|
172
|
+
|
|
173
|
+
platform_name = self.platform_name
|
|
174
|
+
scale_factor = getattr(benchmark_config, "scale_factor", 1.0)
|
|
175
|
+
|
|
176
|
+
logger.info(f"Starting DataFrame benchmark: {benchmark_config.name}")
|
|
177
|
+
logger.info(f"Platform: {platform_name}, Scale Factor: {scale_factor}")
|
|
178
|
+
|
|
179
|
+
# Build platform info using standardized extractor
|
|
180
|
+
platform_info = build_platform_info(self, execution_mode="dataframe")
|
|
181
|
+
|
|
182
|
+
# Create result builder
|
|
183
|
+
builder = ResultBuilder(
|
|
184
|
+
benchmark=BenchmarkInfoInput(
|
|
185
|
+
name=benchmark_config.name,
|
|
186
|
+
scale_factor=scale_factor,
|
|
187
|
+
test_type=getattr(benchmark_config, "test_execution_type", "power"),
|
|
188
|
+
benchmark_id=normalize_benchmark_id(benchmark_config.name),
|
|
189
|
+
display_name=getattr(benchmark_config, "display_name", benchmark_config.name),
|
|
190
|
+
),
|
|
191
|
+
platform=platform_info,
|
|
192
|
+
)
|
|
193
|
+
builder.mark_started()
|
|
194
|
+
|
|
195
|
+
options_map = getattr(benchmark_config, "options", {}) or {}
|
|
196
|
+
builder.set_run_config(
|
|
197
|
+
RunConfigInput(
|
|
198
|
+
compression_type=options_map.get("compression_type"),
|
|
199
|
+
compression_level=options_map.get("compression_level"),
|
|
200
|
+
seed=options_map.get("seed"),
|
|
201
|
+
phases=options_map.get("phases"),
|
|
202
|
+
query_subset=getattr(benchmark_config, "queries", None),
|
|
203
|
+
tuning_mode=options_map.get("tuning_mode"),
|
|
204
|
+
tuning_config=options_map.get("df_tuning_config"),
|
|
205
|
+
)
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
# Initialize result tracking
|
|
209
|
+
query_results: list[dict[str, Any]] = []
|
|
210
|
+
table_stats: dict[str, int] = {}
|
|
211
|
+
load_time = 0.0
|
|
212
|
+
|
|
213
|
+
try:
|
|
214
|
+
# Pre-execution memory check
|
|
215
|
+
if not options.ignore_memory_warnings:
|
|
216
|
+
memory_check = check_sufficient_memory(benchmark_config.name, scale_factor, platform_name.lower())
|
|
217
|
+
if not memory_check.is_safe:
|
|
218
|
+
warning = format_memory_warning(memory_check)
|
|
219
|
+
logger.warning(warning)
|
|
220
|
+
|
|
221
|
+
# Scale factor validation
|
|
222
|
+
is_valid, sf_warning = validate_scale_factor(scale_factor, platform_name.lower())
|
|
223
|
+
if sf_warning:
|
|
224
|
+
logger.warning(sf_warning)
|
|
225
|
+
|
|
226
|
+
# Create execution context
|
|
227
|
+
ctx = self.create_context()
|
|
228
|
+
|
|
229
|
+
# Load phase
|
|
230
|
+
if phases.load:
|
|
231
|
+
load_start = time.time()
|
|
232
|
+
try:
|
|
233
|
+
table_stats, per_table_stats = self._load_data_phase(
|
|
234
|
+
ctx=ctx,
|
|
235
|
+
benchmark_config=benchmark_config,
|
|
236
|
+
benchmark_instance=benchmark,
|
|
237
|
+
data_dir=data_dir,
|
|
238
|
+
options=options,
|
|
239
|
+
)
|
|
240
|
+
load_time = time.time() - load_start
|
|
241
|
+
logger.info(f"Data loading completed in {load_time:.2f}s")
|
|
242
|
+
|
|
243
|
+
# Add table stats to builder
|
|
244
|
+
for table_name, stats in per_table_stats.items():
|
|
245
|
+
builder.add_table_stats(
|
|
246
|
+
table_name,
|
|
247
|
+
stats.rows,
|
|
248
|
+
load_time_ms=stats.load_time_ms,
|
|
249
|
+
status=stats.status,
|
|
250
|
+
error_message=stats.error_message,
|
|
251
|
+
)
|
|
252
|
+
builder.set_loading_time(load_time * 1000)
|
|
253
|
+
builder.set_phase_status("data_loading", "COMPLETED", load_time * 1000)
|
|
254
|
+
|
|
255
|
+
except DataLoadingError as load_err:
|
|
256
|
+
load_time = time.time() - load_start
|
|
257
|
+
|
|
258
|
+
# Add failed table stats to builder
|
|
259
|
+
for table_name, stats in load_err.per_table_stats.items():
|
|
260
|
+
builder.add_table_stats(
|
|
261
|
+
table_name,
|
|
262
|
+
stats.rows,
|
|
263
|
+
load_time_ms=stats.load_time_ms,
|
|
264
|
+
status=stats.status,
|
|
265
|
+
error_message=stats.error_message,
|
|
266
|
+
)
|
|
267
|
+
builder.set_loading_time(load_time * 1000)
|
|
268
|
+
builder.set_validation_status(
|
|
269
|
+
"FAILED",
|
|
270
|
+
{"error": str(load_err), "phase": "data_loading"},
|
|
271
|
+
)
|
|
272
|
+
builder.set_phase_status("data_loading", "FAILED")
|
|
273
|
+
builder.mark_completed()
|
|
274
|
+
return builder.build()
|
|
275
|
+
|
|
276
|
+
# Execute phase
|
|
277
|
+
if phases.execute:
|
|
278
|
+
query_results = self._execute_queries_phase(
|
|
279
|
+
ctx=ctx,
|
|
280
|
+
benchmark_config=benchmark_config,
|
|
281
|
+
benchmark_instance=benchmark,
|
|
282
|
+
monitor=monitor,
|
|
283
|
+
run_options=options,
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
# Add query results to builder
|
|
287
|
+
for qr in query_results:
|
|
288
|
+
builder.add_query_result(normalize_query_result(qr))
|
|
289
|
+
builder.set_phase_status("power_test", "COMPLETED")
|
|
290
|
+
|
|
291
|
+
builder.mark_completed()
|
|
292
|
+
return builder.build()
|
|
293
|
+
|
|
294
|
+
except Exception as e:
|
|
295
|
+
logger.error(f"DataFrame benchmark failed: {e}")
|
|
296
|
+
builder.set_validation_status(
|
|
297
|
+
"FAILED",
|
|
298
|
+
{"error": str(e), "error_type": type(e).__name__},
|
|
299
|
+
)
|
|
300
|
+
builder.add_execution_metadata("error", str(e))
|
|
301
|
+
builder.mark_completed()
|
|
302
|
+
return builder.build()
|
|
303
|
+
|
|
304
|
+
def _extract_benchmark_config(self, benchmark: Any, run_config: dict[str, Any]) -> BenchmarkConfig:
|
|
305
|
+
"""Extract BenchmarkConfig from benchmark instance or run_config."""
|
|
306
|
+
# Check if benchmark has config attribute
|
|
307
|
+
if hasattr(benchmark, "config") and isinstance(benchmark.config, BenchmarkConfig):
|
|
308
|
+
return benchmark.config
|
|
309
|
+
|
|
310
|
+
# Build from benchmark attributes and run_config
|
|
311
|
+
name = getattr(benchmark, "_name", getattr(benchmark, "name", type(benchmark).__name__.lower()))
|
|
312
|
+
display_name = getattr(benchmark, "display_name", name.upper())
|
|
313
|
+
scale_factor = run_config.get("scale_factor", getattr(benchmark, "scale_factor", 1.0))
|
|
314
|
+
queries = run_config.get("query_subset", run_config.get("queries"))
|
|
315
|
+
|
|
316
|
+
return BenchmarkConfig(
|
|
317
|
+
name=name,
|
|
318
|
+
display_name=display_name,
|
|
319
|
+
scale_factor=scale_factor,
|
|
320
|
+
queries=queries,
|
|
321
|
+
)
|
|
322
|
+
|
|
323
|
+
def _load_data_phase(
|
|
324
|
+
self,
|
|
325
|
+
ctx: Any,
|
|
326
|
+
benchmark_config: BenchmarkConfig,
|
|
327
|
+
benchmark_instance: Any | None,
|
|
328
|
+
data_dir: Path | None,
|
|
329
|
+
options: DataFrameRunOptions,
|
|
330
|
+
) -> tuple[dict[str, int], dict[str, TableLoadingStats]]:
|
|
331
|
+
"""Load benchmark data into DataFrame context.
|
|
332
|
+
|
|
333
|
+
Returns:
|
|
334
|
+
Tuple of (table_stats, per_table_loading_stats)
|
|
335
|
+
"""
|
|
336
|
+
platform_name = self.platform_name.lower()
|
|
337
|
+
|
|
338
|
+
# Create data loader
|
|
339
|
+
loader = DataFrameDataLoader(
|
|
340
|
+
platform=platform_name,
|
|
341
|
+
cache_dir=options.cache_dir,
|
|
342
|
+
prefer_parquet=options.prefer_parquet,
|
|
343
|
+
force_regenerate=options.force_regenerate,
|
|
344
|
+
)
|
|
345
|
+
|
|
346
|
+
def _normalize_table_paths(tables: dict[str, Any]) -> dict[str, Path | list[Path]]:
|
|
347
|
+
normalized: dict[str, Path | list[Path]] = {}
|
|
348
|
+
for name, path in tables.items():
|
|
349
|
+
if isinstance(path, list):
|
|
350
|
+
normalized[name] = [Path(p) if not isinstance(p, Path) else p for p in path]
|
|
351
|
+
elif isinstance(path, Path):
|
|
352
|
+
normalized[name] = path
|
|
353
|
+
else:
|
|
354
|
+
normalized[name] = Path(path)
|
|
355
|
+
return normalized
|
|
356
|
+
|
|
357
|
+
def _generate_data() -> dict[str, Path | list[Path]]:
|
|
358
|
+
logger.info("Generating benchmark data...")
|
|
359
|
+
benchmark_instance.generate_data() # type: ignore[union-attr]
|
|
360
|
+
if hasattr(benchmark_instance, "tables") and benchmark_instance.tables:
|
|
361
|
+
return _normalize_table_paths(benchmark_instance.tables)
|
|
362
|
+
return {}
|
|
363
|
+
|
|
364
|
+
def _has_list_paths(paths: dict[str, Path | list[Path]]) -> bool:
|
|
365
|
+
return any(isinstance(value, list) for value in paths.values())
|
|
366
|
+
|
|
367
|
+
def _benchmark_tables_has_list() -> bool:
|
|
368
|
+
if not benchmark_instance or not hasattr(benchmark_instance, "tables") or not benchmark_instance.tables:
|
|
369
|
+
return False
|
|
370
|
+
return any(isinstance(value, list) for value in benchmark_instance.tables.values())
|
|
371
|
+
|
|
372
|
+
def _find_missing_paths(paths: dict[str, Path | list[Path]]) -> dict[str, list[Path]]:
|
|
373
|
+
missing: dict[str, list[Path]] = {}
|
|
374
|
+
for table_name, file_path in paths.items():
|
|
375
|
+
file_list = file_path if isinstance(file_path, list) else [file_path]
|
|
376
|
+
for entry in file_list:
|
|
377
|
+
entry_path = entry if isinstance(entry, Path) else Path(entry)
|
|
378
|
+
if not entry_path.exists():
|
|
379
|
+
missing.setdefault(table_name, []).append(entry_path)
|
|
380
|
+
return missing
|
|
381
|
+
|
|
382
|
+
# Get data paths - try multiple sources in order
|
|
383
|
+
data_paths: dict[str, Path | list[Path]] = {}
|
|
384
|
+
|
|
385
|
+
if options.force_regenerate and benchmark_instance and hasattr(benchmark_instance, "generate_data"):
|
|
386
|
+
data_paths = _generate_data()
|
|
387
|
+
|
|
388
|
+
if benchmark_instance and hasattr(benchmark_instance, "tables") and benchmark_instance.tables:
|
|
389
|
+
# Use benchmark's pre-generated data
|
|
390
|
+
# Note: tables can be dict[str, Path | list[Path]]
|
|
391
|
+
data_paths = {}
|
|
392
|
+
|
|
393
|
+
# Check for parquet directory if prefer_parquet is True
|
|
394
|
+
parquet_dir = None
|
|
395
|
+
if options.prefer_parquet:
|
|
396
|
+
# Look for parquet files in the same directory as the TBL files
|
|
397
|
+
first_path = next(iter(benchmark_instance.tables.values()))
|
|
398
|
+
if isinstance(first_path, list):
|
|
399
|
+
first_path = first_path[0]
|
|
400
|
+
first_path = Path(first_path)
|
|
401
|
+
parent_dir = first_path.parent
|
|
402
|
+
|
|
403
|
+
# Check for parquet subdirectory (common pattern: tpch_sf001_*.parquet/)
|
|
404
|
+
for pq_candidate in parent_dir.glob("*.parquet"):
|
|
405
|
+
if pq_candidate.is_dir():
|
|
406
|
+
parquet_dir = pq_candidate
|
|
407
|
+
logger.info(f"Found parquet directory: {parquet_dir}")
|
|
408
|
+
break
|
|
409
|
+
|
|
410
|
+
if parquet_dir and parquet_dir.is_dir():
|
|
411
|
+
# Use parquet files for proper schema handling
|
|
412
|
+
for pq_file in parquet_dir.glob("*.parquet"):
|
|
413
|
+
table_name = pq_file.stem
|
|
414
|
+
data_paths[table_name] = pq_file
|
|
415
|
+
logger.info(f"Using parquet data: {len(data_paths)} tables from {parquet_dir}")
|
|
416
|
+
else:
|
|
417
|
+
# Fall back to benchmark's TBL files
|
|
418
|
+
data_paths = _normalize_table_paths(benchmark_instance.tables)
|
|
419
|
+
logger.info(f"Using benchmark-provided data: {len(data_paths)} tables")
|
|
420
|
+
elif data_dir and data_dir.exists():
|
|
421
|
+
# Use provided data directory
|
|
422
|
+
data_paths = loader._discover_files(data_dir)
|
|
423
|
+
logger.info(f"Discovered data in {data_dir}: {len(data_paths)} tables")
|
|
424
|
+
if not data_paths and benchmark_instance and hasattr(benchmark_instance, "generate_data"):
|
|
425
|
+
data_paths = _generate_data()
|
|
426
|
+
elif benchmark_instance and hasattr(benchmark_instance, "generate_data"):
|
|
427
|
+
# No data available - try to generate it
|
|
428
|
+
try:
|
|
429
|
+
data_paths = _generate_data()
|
|
430
|
+
if data_paths:
|
|
431
|
+
logger.info(f"Generated data: {len(data_paths)} tables")
|
|
432
|
+
except Exception as gen_err:
|
|
433
|
+
logger.warning(f"Data generation failed: {gen_err}")
|
|
434
|
+
|
|
435
|
+
if not data_paths:
|
|
436
|
+
raise ValueError("No data source available. Either provide data_dir or generate data first.")
|
|
437
|
+
|
|
438
|
+
if options.prefer_parquet and not _benchmark_tables_has_list() and benchmark_instance is not None:
|
|
439
|
+
try:
|
|
440
|
+
prepared_paths = loader.prepare_benchmark_data(
|
|
441
|
+
benchmark_instance,
|
|
442
|
+
scale_factor=getattr(benchmark_config, "scale_factor", 1.0),
|
|
443
|
+
data_dir=data_dir,
|
|
444
|
+
)
|
|
445
|
+
if prepared_paths:
|
|
446
|
+
data_paths = prepared_paths
|
|
447
|
+
except Exception as prep_err:
|
|
448
|
+
logger.warning(f"Data preparation failed: {prep_err}. Using source files.")
|
|
449
|
+
|
|
450
|
+
missing_paths = _find_missing_paths(data_paths)
|
|
451
|
+
if missing_paths and benchmark_instance and hasattr(benchmark_instance, "generate_data"):
|
|
452
|
+
logger.info("Missing data files detected, regenerating benchmark data...")
|
|
453
|
+
data_paths = _generate_data()
|
|
454
|
+
if options.prefer_parquet and not _benchmark_tables_has_list() and benchmark_instance is not None:
|
|
455
|
+
try:
|
|
456
|
+
prepared_paths = loader.prepare_benchmark_data(
|
|
457
|
+
benchmark_instance,
|
|
458
|
+
scale_factor=getattr(benchmark_config, "scale_factor", 1.0),
|
|
459
|
+
data_dir=data_dir,
|
|
460
|
+
)
|
|
461
|
+
if prepared_paths:
|
|
462
|
+
data_paths = prepared_paths
|
|
463
|
+
except Exception as prep_err:
|
|
464
|
+
logger.warning(f"Data preparation failed: {prep_err}. Using source files.")
|
|
465
|
+
missing_paths = _find_missing_paths(data_paths)
|
|
466
|
+
|
|
467
|
+
if missing_paths:
|
|
468
|
+
per_table_stats: dict[str, TableLoadingStats] = {}
|
|
469
|
+
for table_name, paths in missing_paths.items():
|
|
470
|
+
missing_list = ", ".join(str(p) for p in paths[:5])
|
|
471
|
+
more = "..." if len(paths) > 5 else ""
|
|
472
|
+
per_table_stats[table_name] = TableLoadingStats(
|
|
473
|
+
rows=0,
|
|
474
|
+
load_time_ms=0,
|
|
475
|
+
status="FAILED",
|
|
476
|
+
error_type="MissingDataError",
|
|
477
|
+
error_message=f"Missing data files: {missing_list}{more}",
|
|
478
|
+
)
|
|
479
|
+
missing_summary = "; ".join(f"{t}: {len(p)} file(s)" for t, p in missing_paths.items())
|
|
480
|
+
raise DataLoadingError(
|
|
481
|
+
"Data files not found. Missing: "
|
|
482
|
+
f"{missing_summary}. Run with --phases generate,load or --force-regenerate to recreate data.",
|
|
483
|
+
per_table_stats=per_table_stats,
|
|
484
|
+
)
|
|
485
|
+
|
|
486
|
+
# Get schema info for column names
|
|
487
|
+
benchmark_id = normalize_benchmark_id(benchmark_config.name)
|
|
488
|
+
column_names_map = get_tpch_column_names() if benchmark_id == "tpch" else {}
|
|
489
|
+
|
|
490
|
+
# Load tables
|
|
491
|
+
table_stats: dict[str, int] = {}
|
|
492
|
+
per_table_stats: dict[str, TableLoadingStats] = {}
|
|
493
|
+
|
|
494
|
+
for table_name, file_path in data_paths.items():
|
|
495
|
+
load_start = time.time()
|
|
496
|
+
try:
|
|
497
|
+
column_names = column_names_map.get(table_name.lower())
|
|
498
|
+
# Ensure file_path is a list
|
|
499
|
+
file_paths = [file_path] if not isinstance(file_path, list) else file_path
|
|
500
|
+
row_count = self.load_table(ctx, table_name.lower(), file_paths, column_names=column_names)
|
|
501
|
+
load_time_ms = int((time.time() - load_start) * 1000)
|
|
502
|
+
|
|
503
|
+
table_stats[table_name] = row_count
|
|
504
|
+
per_table_stats[table_name] = TableLoadingStats(
|
|
505
|
+
rows=row_count,
|
|
506
|
+
load_time_ms=load_time_ms,
|
|
507
|
+
status="SUCCESS",
|
|
508
|
+
)
|
|
509
|
+
logger.debug(f"Loaded {table_name}: {row_count:,} rows in {load_time_ms}ms")
|
|
510
|
+
|
|
511
|
+
except Exception as e:
|
|
512
|
+
load_time_ms = int((time.time() - load_start) * 1000)
|
|
513
|
+
per_table_stats[table_name] = TableLoadingStats(
|
|
514
|
+
rows=0,
|
|
515
|
+
load_time_ms=load_time_ms,
|
|
516
|
+
status="FAILED",
|
|
517
|
+
error_type=type(e).__name__,
|
|
518
|
+
error_message=str(e),
|
|
519
|
+
)
|
|
520
|
+
logger.error(f"Failed to load {table_name}: {e}")
|
|
521
|
+
|
|
522
|
+
failed_tables = [name for name, stats in per_table_stats.items() if stats.status == "FAILED"]
|
|
523
|
+
if failed_tables:
|
|
524
|
+
raise DataLoadingError(
|
|
525
|
+
f"Failed to load {len(failed_tables)} table(s): {', '.join(failed_tables)}.",
|
|
526
|
+
table_stats=table_stats,
|
|
527
|
+
per_table_stats=per_table_stats,
|
|
528
|
+
)
|
|
529
|
+
|
|
530
|
+
return table_stats, per_table_stats
|
|
531
|
+
|
|
532
|
+
def _execute_queries_phase(
|
|
533
|
+
self,
|
|
534
|
+
ctx: Any,
|
|
535
|
+
benchmark_config: BenchmarkConfig,
|
|
536
|
+
benchmark_instance: Any | None,
|
|
537
|
+
monitor: Any | None,
|
|
538
|
+
run_options: DataFrameRunOptions | None = None,
|
|
539
|
+
) -> list[dict[str, Any]]:
|
|
540
|
+
"""Execute DataFrame queries with warmup and measurement iterations.
|
|
541
|
+
|
|
542
|
+
Follows TPC power test methodology:
|
|
543
|
+
1. Warmup iterations (default 1): Prime caches, not included in results
|
|
544
|
+
2. Measurement iterations (default 3): Timed runs, results aggregated
|
|
545
|
+
"""
|
|
546
|
+
# Get warmup and iteration counts from config options
|
|
547
|
+
config_options = getattr(benchmark_config, "options", {}) or {}
|
|
548
|
+
warmup_iterations = int(
|
|
549
|
+
config_options.get("power_warmup_iterations", GENERIC_POWER_DEFAULT_WARMUP_ITERATIONS)
|
|
550
|
+
or GENERIC_POWER_DEFAULT_WARMUP_ITERATIONS
|
|
551
|
+
)
|
|
552
|
+
measurement_iterations = int(
|
|
553
|
+
config_options.get("power_iterations", GENERIC_POWER_DEFAULT_MEASUREMENT_ITERATIONS)
|
|
554
|
+
or GENERIC_POWER_DEFAULT_MEASUREMENT_ITERATIONS
|
|
555
|
+
)
|
|
556
|
+
|
|
557
|
+
# Get query subset filter if specified
|
|
558
|
+
query_subset = getattr(benchmark_config, "queries", None)
|
|
559
|
+
query_filter: set[str] | None = None
|
|
560
|
+
if query_subset:
|
|
561
|
+
# Normalize query IDs - handle both "1" and "Q1" formats
|
|
562
|
+
normalized = set()
|
|
563
|
+
for q in query_subset:
|
|
564
|
+
q_str = str(q).strip().upper()
|
|
565
|
+
# Add both forms for matching: "Q1" and "1"
|
|
566
|
+
if q_str.startswith("Q"):
|
|
567
|
+
normalized.add(q_str) # Q1
|
|
568
|
+
normalized.add(q_str[1:]) # 1
|
|
569
|
+
else:
|
|
570
|
+
normalized.add(q_str) # 1
|
|
571
|
+
normalized.add(f"Q{q_str}") # Q1
|
|
572
|
+
query_filter = normalized
|
|
573
|
+
|
|
574
|
+
# Get initial query set to determine total count
|
|
575
|
+
initial_queries = self._get_queries_for_benchmark(benchmark_config, benchmark_instance, stream_id=0)
|
|
576
|
+
if query_filter:
|
|
577
|
+
initial_queries = [q for q in initial_queries if q.query_id.upper() in query_filter]
|
|
578
|
+
|
|
579
|
+
if not initial_queries:
|
|
580
|
+
logger.warning("No queries found for execution")
|
|
581
|
+
return []
|
|
582
|
+
|
|
583
|
+
total_queries = len(initial_queries)
|
|
584
|
+
logger.info(f"Executing {total_queries} queries")
|
|
585
|
+
logger.info(f"Warmup iterations: {warmup_iterations}, Measurement iterations: {measurement_iterations}")
|
|
586
|
+
|
|
587
|
+
query_results: list[dict[str, Any]] = []
|
|
588
|
+
|
|
589
|
+
# Execute warmup iterations (emit results)
|
|
590
|
+
if warmup_iterations > 0:
|
|
591
|
+
console.print(f"\n[yellow]Running {warmup_iterations} warmup iteration(s)...[/yellow]")
|
|
592
|
+
for warmup_iter in range(warmup_iterations):
|
|
593
|
+
warmup_queries = self._get_queries_for_benchmark(benchmark_config, benchmark_instance, stream_id=0)
|
|
594
|
+
if query_filter:
|
|
595
|
+
warmup_queries = [q for q in warmup_queries if q.query_id.upper() in query_filter]
|
|
596
|
+
|
|
597
|
+
console.print(f"[dim]Warmup {warmup_iter + 1}/{warmup_iterations} (stream 0)[/dim]")
|
|
598
|
+
for query in warmup_queries:
|
|
599
|
+
try:
|
|
600
|
+
result = self.execute_query(ctx, query)
|
|
601
|
+
result = dict(result)
|
|
602
|
+
except Exception as e:
|
|
603
|
+
logger.warning(f"Warmup query {query.query_id} failed: {e}")
|
|
604
|
+
result = {
|
|
605
|
+
"query_id": query.query_id,
|
|
606
|
+
"status": "FAILED",
|
|
607
|
+
"error": str(e),
|
|
608
|
+
"execution_time_seconds": 0.0,
|
|
609
|
+
}
|
|
610
|
+
result["iteration"] = 0
|
|
611
|
+
result["stream_id"] = 0
|
|
612
|
+
result["run_type"] = "warmup"
|
|
613
|
+
query_results.append(result)
|
|
614
|
+
|
|
615
|
+
# Execute measurement iterations
|
|
616
|
+
console.print(
|
|
617
|
+
f"\n[cyan]Running {measurement_iterations} measurement iteration(s) with {total_queries} queries each...[/cyan]"
|
|
618
|
+
)
|
|
619
|
+
|
|
620
|
+
for iteration in range(measurement_iterations):
|
|
621
|
+
measurement_stream_id = warmup_iterations + iteration
|
|
622
|
+
measurement_queries = self._get_queries_for_benchmark(
|
|
623
|
+
benchmark_config, benchmark_instance, stream_id=measurement_stream_id
|
|
624
|
+
)
|
|
625
|
+
if query_filter:
|
|
626
|
+
measurement_queries = [q for q in measurement_queries if q.query_id.upper() in query_filter]
|
|
627
|
+
|
|
628
|
+
console.print(
|
|
629
|
+
f"\n[green]Iteration {iteration + 1}/{measurement_iterations} (stream {measurement_stream_id})[/green]"
|
|
630
|
+
)
|
|
631
|
+
|
|
632
|
+
iteration_results: list[dict[str, Any]] = []
|
|
633
|
+
for i, query in enumerate(measurement_queries, 1):
|
|
634
|
+
if run_options and (run_options.verbose or run_options.very_verbose):
|
|
635
|
+
console.print(f"[blue]Executing query {i}/{total_queries}: {query.query_id}[/blue]")
|
|
636
|
+
|
|
637
|
+
def execute_single_query(q=query):
|
|
638
|
+
try:
|
|
639
|
+
result = self.execute_query(ctx, q)
|
|
640
|
+
result = dict(result)
|
|
641
|
+
except Exception as e:
|
|
642
|
+
logger.error(f"Query {q.query_id} failed: {e}")
|
|
643
|
+
result = {
|
|
644
|
+
"query_id": q.query_id,
|
|
645
|
+
"status": "FAILED",
|
|
646
|
+
"error": str(e),
|
|
647
|
+
"execution_time_seconds": 0.0,
|
|
648
|
+
}
|
|
649
|
+
result["iteration"] = iteration + 1
|
|
650
|
+
result["stream_id"] = measurement_stream_id
|
|
651
|
+
result["run_type"] = "measurement"
|
|
652
|
+
query_results.append(result)
|
|
653
|
+
iteration_results.append(result)
|
|
654
|
+
|
|
655
|
+
if monitor:
|
|
656
|
+
with monitor.time_operation(f"query_{query.query_id}_iter{iteration + 1}"):
|
|
657
|
+
execute_single_query()
|
|
658
|
+
else:
|
|
659
|
+
execute_single_query()
|
|
660
|
+
|
|
661
|
+
self._print_iteration_summary(
|
|
662
|
+
iteration + 1,
|
|
663
|
+
measurement_iterations,
|
|
664
|
+
iteration_results,
|
|
665
|
+
benchmark_config,
|
|
666
|
+
)
|
|
667
|
+
|
|
668
|
+
return query_results
|
|
669
|
+
|
|
670
|
+
def _print_iteration_summary(
|
|
671
|
+
self,
|
|
672
|
+
iteration: int,
|
|
673
|
+
total_iterations: int,
|
|
674
|
+
iteration_results: list[dict[str, Any]],
|
|
675
|
+
benchmark_config: BenchmarkConfig,
|
|
676
|
+
) -> None:
|
|
677
|
+
"""Print summary for a completed measurement iteration."""
|
|
678
|
+
from benchbox.core.results.metrics import TPCMetricsCalculator
|
|
679
|
+
|
|
680
|
+
total_queries = len(iteration_results)
|
|
681
|
+
successful = [r for r in iteration_results if str(r.get("status", "")).upper() == "SUCCESS"]
|
|
682
|
+
successful_count = len(successful)
|
|
683
|
+
|
|
684
|
+
exec_times: list[float] = []
|
|
685
|
+
for result in successful:
|
|
686
|
+
exec_time = result.get("execution_time_seconds")
|
|
687
|
+
if exec_time is None:
|
|
688
|
+
exec_time = result.get("execution_time", 0.0)
|
|
689
|
+
if exec_time:
|
|
690
|
+
exec_times.append(float(exec_time))
|
|
691
|
+
|
|
692
|
+
total_time = sum(exec_times)
|
|
693
|
+
scale_factor = getattr(benchmark_config, "scale_factor", 1.0)
|
|
694
|
+
benchmark_id = normalize_benchmark_id(benchmark_config.name)
|
|
695
|
+
|
|
696
|
+
if benchmark_id == "tpch":
|
|
697
|
+
display_name = "TPC-H"
|
|
698
|
+
elif benchmark_id == "tpcds":
|
|
699
|
+
display_name = "TPC-DS"
|
|
700
|
+
else:
|
|
701
|
+
display_name = str(benchmark_config.name).upper()
|
|
702
|
+
|
|
703
|
+
power_at_size = None
|
|
704
|
+
if successful_count == total_queries and exec_times:
|
|
705
|
+
power_at_size = TPCMetricsCalculator.calculate_power_at_size(exec_times, scale_factor)
|
|
706
|
+
|
|
707
|
+
test_name = f"{display_name} Power Test"
|
|
708
|
+
console.print(f"\n[dim]Iteration {iteration}/{total_iterations} summary:[/dim]")
|
|
709
|
+
if successful_count == total_queries:
|
|
710
|
+
if power_at_size and power_at_size > 0:
|
|
711
|
+
console.print(f"[green]{test_name} completed: Power@Size = {power_at_size:.2f}[/green]")
|
|
712
|
+
else:
|
|
713
|
+
console.print(f"[green]{test_name} completed[/green]")
|
|
714
|
+
console.print(f" Queries executed: {total_queries}, Successful: {successful_count}")
|
|
715
|
+
success_rate = successful_count / max(total_queries, 1)
|
|
716
|
+
if display_name == "TPC-H":
|
|
717
|
+
console.print(f" Success rate: {success_rate:.1%} (TPC-H requires >=95%)")
|
|
718
|
+
else:
|
|
719
|
+
console.print(f" Success rate: {success_rate:.1%}")
|
|
720
|
+
console.print(f" Total execution time: {total_time:.2f}s")
|
|
721
|
+
else:
|
|
722
|
+
console.print(f"[yellow]{test_name} completed with failures[/yellow]")
|
|
723
|
+
console.print(
|
|
724
|
+
f" Queries: {total_queries}, Successful: {successful_count}, "
|
|
725
|
+
f"Failed: {total_queries - successful_count}"
|
|
726
|
+
)
|
|
727
|
+
|
|
728
|
+
def _get_queries_for_benchmark(
|
|
729
|
+
self,
|
|
730
|
+
benchmark_config: BenchmarkConfig,
|
|
731
|
+
benchmark_instance: Any | None,
|
|
732
|
+
stream_id: int | None = None,
|
|
733
|
+
) -> list[DataFrameQuery]:
|
|
734
|
+
"""Get DataFrame queries for a benchmark in proper execution order."""
|
|
735
|
+
benchmark_id = normalize_benchmark_id(benchmark_config.name)
|
|
736
|
+
|
|
737
|
+
if stream_id is None:
|
|
738
|
+
stream_id = getattr(benchmark_config, "stream_id", 0)
|
|
739
|
+
|
|
740
|
+
# Check registry for pre-defined queries
|
|
741
|
+
if benchmark_id == "tpch":
|
|
742
|
+
from benchbox.core.tpch.dataframe_queries import TPCH_DATAFRAME_QUERIES
|
|
743
|
+
from benchbox.core.tpch.streams import TPCHStreams
|
|
744
|
+
|
|
745
|
+
query_permutation = TPCHStreams.PERMUTATION_MATRIX[stream_id % len(TPCHStreams.PERMUTATION_MATRIX)]
|
|
746
|
+
|
|
747
|
+
queries = []
|
|
748
|
+
for query_num in query_permutation:
|
|
749
|
+
query_id = f"Q{query_num}"
|
|
750
|
+
query = TPCH_DATAFRAME_QUERIES.get(query_id)
|
|
751
|
+
if query:
|
|
752
|
+
queries.append(query)
|
|
753
|
+
else:
|
|
754
|
+
logger.warning(f"Query {query_id} not found in TPC-H DataFrame registry")
|
|
755
|
+
return queries
|
|
756
|
+
|
|
757
|
+
elif benchmark_id == "tpcds":
|
|
758
|
+
from benchbox.core.tpcds.dataframe_queries import TPCDS_DATAFRAME_QUERIES
|
|
759
|
+
from benchbox.core.tpcds.streams import PermutationMode, TPCDSPermutationGenerator
|
|
760
|
+
|
|
761
|
+
available_query_ids = [int(qid[1:]) for qid in TPCDS_DATAFRAME_QUERIES.get_query_ids()]
|
|
762
|
+
generator = TPCDSPermutationGenerator(seed=42 + stream_id)
|
|
763
|
+
query_permutation = generator.generate_permutation(available_query_ids, PermutationMode.TPCDS_STANDARD)
|
|
764
|
+
|
|
765
|
+
queries = []
|
|
766
|
+
for query_num in query_permutation:
|
|
767
|
+
query_id = f"Q{query_num}"
|
|
768
|
+
query = TPCDS_DATAFRAME_QUERIES.get(query_id)
|
|
769
|
+
if query:
|
|
770
|
+
queries.append(query)
|
|
771
|
+
else:
|
|
772
|
+
logger.warning(f"Query {query_id} not found in TPC-DS DataFrame registry")
|
|
773
|
+
return queries
|
|
774
|
+
|
|
775
|
+
# Try benchmark instance
|
|
776
|
+
if benchmark_instance and hasattr(benchmark_instance, "get_dataframe_queries"):
|
|
777
|
+
return benchmark_instance.get_dataframe_queries()
|
|
778
|
+
|
|
779
|
+
return []
|