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
|
@@ -51,7 +51,8 @@ if TYPE_CHECKING:
|
|
|
51
51
|
PrimaryKeyConfiguration,
|
|
52
52
|
)
|
|
53
53
|
|
|
54
|
-
from ..utils.dependencies import check_platform_dependencies, get_dependency_error_message
|
|
54
|
+
from ..utils.dependencies import check_platform_dependencies, get_dependency_error_message, get_package_install_message
|
|
55
|
+
from ..utils.file_format import get_delimiter_for_file, is_parquet_format, is_tpc_format
|
|
55
56
|
from .base import PlatformAdapter
|
|
56
57
|
|
|
57
58
|
# Microsoft Fabric uses T-SQL dialect (subset of SQL Server T-SQL)
|
|
@@ -317,7 +318,9 @@ class FabricWarehouseAdapter(PlatformAdapter):
|
|
|
317
318
|
)
|
|
318
319
|
except ImportError as err:
|
|
319
320
|
raise ImportError(
|
|
320
|
-
|
|
321
|
+
get_package_install_message(
|
|
322
|
+
"azure-identity", "azure-identity package required for Fabric authentication."
|
|
323
|
+
)
|
|
321
324
|
) from err
|
|
322
325
|
|
|
323
326
|
# SQL Database scope for Fabric
|
|
@@ -753,8 +756,10 @@ class FabricWarehouseAdapter(PlatformAdapter):
|
|
|
753
756
|
from azure.storage.filedatalake import DataLakeServiceClient
|
|
754
757
|
except ImportError as err:
|
|
755
758
|
raise ImportError(
|
|
756
|
-
|
|
757
|
-
|
|
759
|
+
get_package_install_message(
|
|
760
|
+
"azure-storage-file-datalake azure-identity",
|
|
761
|
+
"Azure Storage SDK required for OneLake uploads.",
|
|
762
|
+
)
|
|
758
763
|
) from err
|
|
759
764
|
|
|
760
765
|
# Create credential
|
|
@@ -924,19 +929,15 @@ class FabricWarehouseAdapter(PlatformAdapter):
|
|
|
924
929
|
onelake_uri = self._upload_to_onelake(data_file, table_name)
|
|
925
930
|
|
|
926
931
|
# Determine file format and delimiter
|
|
927
|
-
|
|
928
|
-
if suffix in (".tbl", ".dat"):
|
|
929
|
-
file_type = "CSV"
|
|
930
|
-
field_terminator = "|"
|
|
931
|
-
elif suffix == ".csv":
|
|
932
|
-
file_type = "CSV"
|
|
933
|
-
field_terminator = ","
|
|
934
|
-
elif suffix == ".parquet":
|
|
932
|
+
if is_parquet_format(data_file):
|
|
935
933
|
file_type = "PARQUET"
|
|
936
934
|
field_terminator = None
|
|
935
|
+
elif is_tpc_format(data_file):
|
|
936
|
+
file_type = "CSV"
|
|
937
|
+
field_terminator = "|"
|
|
937
938
|
else:
|
|
938
939
|
file_type = "CSV"
|
|
939
|
-
field_terminator =
|
|
940
|
+
field_terminator = get_delimiter_for_file(data_file)
|
|
940
941
|
|
|
941
942
|
# Build COPY INTO command
|
|
942
943
|
if file_type == "PARQUET":
|
|
@@ -1010,8 +1011,7 @@ class FabricWarehouseAdapter(PlatformAdapter):
|
|
|
1010
1011
|
continue
|
|
1011
1012
|
|
|
1012
1013
|
# Determine delimiter
|
|
1013
|
-
|
|
1014
|
-
delimiter = "|" if suffix in (".tbl", ".dat") else ","
|
|
1014
|
+
delimiter = get_delimiter_for_file(data_file)
|
|
1015
1015
|
|
|
1016
1016
|
with open(data_file, encoding="utf-8") as f:
|
|
1017
1017
|
reader = csv.reader(f, delimiter=delimiter)
|
benchbox/platforms/firebolt.py
CHANGED
|
@@ -25,6 +25,8 @@ import time
|
|
|
25
25
|
from pathlib import Path
|
|
26
26
|
from typing import TYPE_CHECKING, Any
|
|
27
27
|
|
|
28
|
+
from benchbox.utils.file_format import get_delimiter_for_file
|
|
29
|
+
|
|
28
30
|
logger = logging.getLogger(__name__)
|
|
29
31
|
|
|
30
32
|
if TYPE_CHECKING:
|
|
@@ -709,8 +711,7 @@ class FireboltAdapter(PlatformAdapter):
|
|
|
709
711
|
file_path = Path(file_path)
|
|
710
712
|
|
|
711
713
|
# Detect delimiter from file extension (handle compressed extensions)
|
|
712
|
-
|
|
713
|
-
delimiter = "|" if ".tbl" in file_str or ".dat" in file_str else ","
|
|
714
|
+
delimiter = get_delimiter_for_file(file_path)
|
|
714
715
|
|
|
715
716
|
# Get compression handler (handles .zst, .gz, or uncompressed)
|
|
716
717
|
compression_handler = FileFormatRegistry.get_compression_handler(file_path)
|
|
@@ -27,7 +27,11 @@ from pathlib import Path
|
|
|
27
27
|
from typing import TYPE_CHECKING, Any
|
|
28
28
|
|
|
29
29
|
from benchbox.platforms.base import PlatformAdapter
|
|
30
|
-
from benchbox.utils.dependencies import
|
|
30
|
+
from benchbox.utils.dependencies import (
|
|
31
|
+
check_platform_dependencies,
|
|
32
|
+
get_dependency_error_message,
|
|
33
|
+
get_package_install_message,
|
|
34
|
+
)
|
|
31
35
|
|
|
32
36
|
from ._dependencies import INFLUXDB_AVAILABLE
|
|
33
37
|
from .metadata import InfluxDBMetadataMixin
|
|
@@ -237,8 +241,8 @@ class InfluxDBAdapter(
|
|
|
237
241
|
|
|
238
242
|
if not INFLUXDB3_AVAILABLE:
|
|
239
243
|
self.logger.warning(
|
|
240
|
-
"Line Protocol writes require influxdb3-python. "
|
|
241
|
-
"
|
|
244
|
+
"Line Protocol writes require influxdb3-python. Data loading skipped. "
|
|
245
|
+
+ get_package_install_message("influxdb3-python", "")
|
|
242
246
|
)
|
|
243
247
|
return {}, 0.0, {"skipped": True, "reason": "influxdb3-python not available"}
|
|
244
248
|
|
benchbox/platforms/motherduck.py
CHANGED
|
@@ -29,6 +29,7 @@ from typing import Any, Optional
|
|
|
29
29
|
from benchbox.core.config_inheritance import (
|
|
30
30
|
resolve_dialect_for_query_translation,
|
|
31
31
|
)
|
|
32
|
+
from benchbox.utils.dependencies import get_package_install_message
|
|
32
33
|
|
|
33
34
|
try:
|
|
34
35
|
import duckdb
|
|
@@ -69,8 +70,8 @@ class MotherDuckAdapter(PlatformAdapter):
|
|
|
69
70
|
if duckdb is None:
|
|
70
71
|
raise ImportError(
|
|
71
72
|
"MotherDuck requires the duckdb package.\n"
|
|
72
|
-
"
|
|
73
|
-
"\nNote: MotherDuck support requires DuckDB >= 0.9.0"
|
|
73
|
+
+ get_package_install_message("duckdb", "")
|
|
74
|
+
+ "\n\nNote: MotherDuck support requires DuckDB >= 0.9.0"
|
|
74
75
|
)
|
|
75
76
|
|
|
76
77
|
# Use inherited dialect from DuckDB
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Onehouse platform adapters for BenchBox.
|
|
2
|
+
|
|
3
|
+
Onehouse provides managed lakehouse infrastructure including Quanton,
|
|
4
|
+
a serverless managed Spark compute runtime with multi-table-format support.
|
|
5
|
+
|
|
6
|
+
Platforms:
|
|
7
|
+
QuantonAdapter: Serverless Spark with Hudi/Iceberg/Delta support
|
|
8
|
+
|
|
9
|
+
Usage:
|
|
10
|
+
from benchbox.platforms.onehouse import QuantonAdapter
|
|
11
|
+
|
|
12
|
+
adapter = QuantonAdapter(
|
|
13
|
+
api_key="your-api-key",
|
|
14
|
+
s3_staging_dir="s3://my-bucket/benchbox",
|
|
15
|
+
table_format="iceberg",
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
Copyright 2026 Joe Harris / BenchBox Project
|
|
19
|
+
|
|
20
|
+
Licensed under the MIT License. See LICENSE file in the project root for details.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
from benchbox.platforms.onehouse.onehouse_client import (
|
|
24
|
+
ClusterConfig,
|
|
25
|
+
JobResult,
|
|
26
|
+
JobState,
|
|
27
|
+
OnehouseClient,
|
|
28
|
+
TableFormat,
|
|
29
|
+
)
|
|
30
|
+
from benchbox.platforms.onehouse.quanton_adapter import QuantonAdapter
|
|
31
|
+
|
|
32
|
+
__all__ = [
|
|
33
|
+
"QuantonAdapter",
|
|
34
|
+
"OnehouseClient",
|
|
35
|
+
"ClusterConfig",
|
|
36
|
+
"JobResult",
|
|
37
|
+
"JobState",
|
|
38
|
+
"TableFormat",
|
|
39
|
+
]
|
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
"""Onehouse API client for Quanton managed Spark.
|
|
2
|
+
|
|
3
|
+
Provides HTTP client for interacting with Onehouse Quanton API for:
|
|
4
|
+
- Job submission and management
|
|
5
|
+
- Cluster lifecycle
|
|
6
|
+
- Status polling and result retrieval
|
|
7
|
+
|
|
8
|
+
Onehouse Quanton is a serverless managed Spark compute runtime with:
|
|
9
|
+
- 2-3x better price-performance vs AWS EMR and Databricks
|
|
10
|
+
- Multi-table-format support: Apache Hudi, Apache Iceberg, Delta Lake
|
|
11
|
+
- Apache XTable integration for cross-format metadata translation
|
|
12
|
+
- Serverless architecture with intelligent cluster management
|
|
13
|
+
|
|
14
|
+
Copyright 2026 Joe Harris / BenchBox Project
|
|
15
|
+
|
|
16
|
+
Licensed under the MIT License. See LICENSE file in the project root for details.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
from __future__ import annotations
|
|
20
|
+
|
|
21
|
+
import logging
|
|
22
|
+
import time
|
|
23
|
+
import uuid
|
|
24
|
+
from dataclasses import dataclass, field
|
|
25
|
+
from enum import Enum
|
|
26
|
+
from typing import Any
|
|
27
|
+
|
|
28
|
+
from benchbox.core.exceptions import ConfigurationError
|
|
29
|
+
from benchbox.utils.dependencies import (
|
|
30
|
+
check_platform_dependencies,
|
|
31
|
+
get_dependency_error_message,
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
try:
|
|
35
|
+
import requests
|
|
36
|
+
from requests.adapters import HTTPAdapter
|
|
37
|
+
from urllib3.util.retry import Retry
|
|
38
|
+
|
|
39
|
+
REQUESTS_AVAILABLE = True
|
|
40
|
+
except ImportError:
|
|
41
|
+
requests = None
|
|
42
|
+
HTTPAdapter = None
|
|
43
|
+
Retry = None
|
|
44
|
+
REQUESTS_AVAILABLE = False
|
|
45
|
+
|
|
46
|
+
logger = logging.getLogger(__name__)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class JobState(str, Enum):
|
|
50
|
+
"""Quanton job state constants."""
|
|
51
|
+
|
|
52
|
+
PENDING = "PENDING"
|
|
53
|
+
QUEUED = "QUEUED"
|
|
54
|
+
RUNNING = "RUNNING"
|
|
55
|
+
SUCCEEDED = "SUCCEEDED"
|
|
56
|
+
FAILED = "FAILED"
|
|
57
|
+
CANCELLED = "CANCELLED"
|
|
58
|
+
CANCELLING = "CANCELLING"
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def is_terminal(self) -> bool:
|
|
62
|
+
"""Check if job state is terminal (no further transitions)."""
|
|
63
|
+
return self in {JobState.SUCCEEDED, JobState.FAILED, JobState.CANCELLED}
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def is_success(self) -> bool:
|
|
67
|
+
"""Check if job completed successfully."""
|
|
68
|
+
return self == JobState.SUCCEEDED
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class TableFormat(str, Enum):
|
|
72
|
+
"""Supported table formats for Quanton."""
|
|
73
|
+
|
|
74
|
+
HUDI = "hudi"
|
|
75
|
+
ICEBERG = "iceberg"
|
|
76
|
+
DELTA = "delta"
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
@dataclass
|
|
80
|
+
class JobResult:
|
|
81
|
+
"""Result of a Quanton job execution."""
|
|
82
|
+
|
|
83
|
+
job_id: str
|
|
84
|
+
state: JobState
|
|
85
|
+
duration_seconds: float | None = None
|
|
86
|
+
error_message: str | None = None
|
|
87
|
+
output_location: str | None = None
|
|
88
|
+
metrics: dict[str, Any] = field(default_factory=dict)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@dataclass
|
|
92
|
+
class ClusterConfig:
|
|
93
|
+
"""Quanton cluster configuration."""
|
|
94
|
+
|
|
95
|
+
cluster_size: str = "small" # small, medium, large, xlarge
|
|
96
|
+
spark_version: str = "3.5"
|
|
97
|
+
auto_scaling: bool = True
|
|
98
|
+
min_workers: int = 1
|
|
99
|
+
max_workers: int = 10
|
|
100
|
+
idle_timeout_minutes: int = 15
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class OnehouseClient:
|
|
104
|
+
"""HTTP client for Onehouse Quanton API.
|
|
105
|
+
|
|
106
|
+
Provides methods for:
|
|
107
|
+
- Authentication and session management
|
|
108
|
+
- Job submission and status polling
|
|
109
|
+
- Cluster management
|
|
110
|
+
- Result retrieval
|
|
111
|
+
|
|
112
|
+
Usage:
|
|
113
|
+
client = OnehouseClient(
|
|
114
|
+
api_key="your-api-key",
|
|
115
|
+
region="us-east-1",
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
# Submit a Spark SQL job
|
|
119
|
+
job_id = client.submit_sql_job(
|
|
120
|
+
sql="SELECT * FROM my_table LIMIT 10",
|
|
121
|
+
database="my_database",
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
# Wait for completion
|
|
125
|
+
result = client.wait_for_job(job_id)
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
DEFAULT_API_ENDPOINT = "api.onehouse.ai"
|
|
129
|
+
DEFAULT_TIMEOUT_SECONDS = 30
|
|
130
|
+
MAX_RETRIES = 3
|
|
131
|
+
RETRY_BACKOFF_FACTOR = 0.5
|
|
132
|
+
|
|
133
|
+
def __init__(
|
|
134
|
+
self,
|
|
135
|
+
api_key: str | None = None,
|
|
136
|
+
region: str = "us-east-1",
|
|
137
|
+
api_endpoint: str | None = None,
|
|
138
|
+
timeout_seconds: int = DEFAULT_TIMEOUT_SECONDS,
|
|
139
|
+
cluster_config: ClusterConfig | None = None,
|
|
140
|
+
) -> None:
|
|
141
|
+
"""Initialize the Onehouse client.
|
|
142
|
+
|
|
143
|
+
Args:
|
|
144
|
+
api_key: Onehouse API key for authentication.
|
|
145
|
+
region: AWS region for cluster deployment.
|
|
146
|
+
api_endpoint: Custom API endpoint (for testing or private deployments).
|
|
147
|
+
timeout_seconds: Request timeout in seconds.
|
|
148
|
+
cluster_config: Cluster configuration for job execution.
|
|
149
|
+
"""
|
|
150
|
+
if not REQUESTS_AVAILABLE:
|
|
151
|
+
deps_satisfied, missing = check_platform_dependencies("quanton")
|
|
152
|
+
if not deps_satisfied:
|
|
153
|
+
raise ConfigurationError(get_dependency_error_message("quanton", missing))
|
|
154
|
+
|
|
155
|
+
self.api_key = api_key
|
|
156
|
+
self.region = region
|
|
157
|
+
self.api_endpoint = api_endpoint or self.DEFAULT_API_ENDPOINT
|
|
158
|
+
self.timeout_seconds = timeout_seconds
|
|
159
|
+
self.cluster_config = cluster_config or ClusterConfig()
|
|
160
|
+
|
|
161
|
+
self._session: Any = None
|
|
162
|
+
self._cluster_id: str | None = None
|
|
163
|
+
|
|
164
|
+
def _get_session(self) -> Any:
|
|
165
|
+
"""Get or create HTTP session with retry configuration."""
|
|
166
|
+
if self._session is None:
|
|
167
|
+
self._session = requests.Session()
|
|
168
|
+
|
|
169
|
+
# Configure retry strategy
|
|
170
|
+
retry_strategy = Retry(
|
|
171
|
+
total=self.MAX_RETRIES,
|
|
172
|
+
backoff_factor=self.RETRY_BACKOFF_FACTOR,
|
|
173
|
+
status_forcelist=[429, 500, 502, 503, 504],
|
|
174
|
+
allowed_methods=["GET", "POST", "PUT", "DELETE"],
|
|
175
|
+
)
|
|
176
|
+
adapter = HTTPAdapter(max_retries=retry_strategy)
|
|
177
|
+
self._session.mount("https://", adapter)
|
|
178
|
+
self._session.mount("http://", adapter)
|
|
179
|
+
|
|
180
|
+
# Set default headers
|
|
181
|
+
self._session.headers.update(
|
|
182
|
+
{
|
|
183
|
+
"Content-Type": "application/json",
|
|
184
|
+
"Accept": "application/json",
|
|
185
|
+
"User-Agent": "BenchBox/1.0 (Onehouse Quanton Adapter)",
|
|
186
|
+
}
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
if self.api_key:
|
|
190
|
+
self._session.headers["Authorization"] = f"Bearer {self.api_key}"
|
|
191
|
+
|
|
192
|
+
return self._session
|
|
193
|
+
|
|
194
|
+
def _build_url(self, path: str) -> str:
|
|
195
|
+
"""Build full API URL from path."""
|
|
196
|
+
base = f"https://{self.api_endpoint}"
|
|
197
|
+
return f"{base}/v1/{path.lstrip('/')}"
|
|
198
|
+
|
|
199
|
+
def _request(
|
|
200
|
+
self,
|
|
201
|
+
method: str,
|
|
202
|
+
path: str,
|
|
203
|
+
data: dict[str, Any] | None = None,
|
|
204
|
+
params: dict[str, Any] | None = None,
|
|
205
|
+
) -> dict[str, Any]:
|
|
206
|
+
"""Make authenticated API request.
|
|
207
|
+
|
|
208
|
+
Args:
|
|
209
|
+
method: HTTP method (GET, POST, etc.)
|
|
210
|
+
path: API path
|
|
211
|
+
data: Request body data
|
|
212
|
+
params: Query parameters
|
|
213
|
+
|
|
214
|
+
Returns:
|
|
215
|
+
Response JSON as dict
|
|
216
|
+
|
|
217
|
+
Raises:
|
|
218
|
+
ConfigurationError: On authentication or configuration errors
|
|
219
|
+
RuntimeError: On API errors
|
|
220
|
+
"""
|
|
221
|
+
session = self._get_session()
|
|
222
|
+
url = self._build_url(path)
|
|
223
|
+
|
|
224
|
+
try:
|
|
225
|
+
response = session.request(
|
|
226
|
+
method=method,
|
|
227
|
+
url=url,
|
|
228
|
+
json=data,
|
|
229
|
+
params=params,
|
|
230
|
+
timeout=self.timeout_seconds,
|
|
231
|
+
)
|
|
232
|
+
|
|
233
|
+
if response.status_code == 401:
|
|
234
|
+
raise ConfigurationError("Invalid Onehouse API key")
|
|
235
|
+
if response.status_code == 403:
|
|
236
|
+
raise ConfigurationError("Insufficient permissions for this operation")
|
|
237
|
+
|
|
238
|
+
response.raise_for_status()
|
|
239
|
+
return response.json() if response.content else {}
|
|
240
|
+
|
|
241
|
+
except requests.exceptions.ConnectionError as e:
|
|
242
|
+
raise ConfigurationError(f"Failed to connect to Onehouse API: {e}") from e
|
|
243
|
+
except requests.exceptions.Timeout as e:
|
|
244
|
+
raise RuntimeError(f"Request timeout: {e}") from e
|
|
245
|
+
except requests.exceptions.HTTPError as e:
|
|
246
|
+
error_detail = ""
|
|
247
|
+
try:
|
|
248
|
+
error_detail = e.response.json().get("message", str(e))
|
|
249
|
+
except Exception:
|
|
250
|
+
error_detail = str(e)
|
|
251
|
+
raise RuntimeError(f"API error: {error_detail}") from e
|
|
252
|
+
|
|
253
|
+
def test_connection(self) -> bool:
|
|
254
|
+
"""Test API connectivity and authentication.
|
|
255
|
+
|
|
256
|
+
Returns:
|
|
257
|
+
True if connection and authentication successful
|
|
258
|
+
"""
|
|
259
|
+
try:
|
|
260
|
+
self._request("GET", "/health")
|
|
261
|
+
return True
|
|
262
|
+
except Exception as e:
|
|
263
|
+
logger.warning(f"Connection test failed: {e}")
|
|
264
|
+
return False
|
|
265
|
+
|
|
266
|
+
def get_cluster_status(self) -> dict[str, Any]:
|
|
267
|
+
"""Get current cluster status.
|
|
268
|
+
|
|
269
|
+
Returns:
|
|
270
|
+
Dict with cluster state information
|
|
271
|
+
"""
|
|
272
|
+
if not self._cluster_id:
|
|
273
|
+
return {"status": "no_cluster", "message": "No cluster provisioned"}
|
|
274
|
+
|
|
275
|
+
return self._request("GET", f"/clusters/{self._cluster_id}")
|
|
276
|
+
|
|
277
|
+
def provision_cluster(self) -> str:
|
|
278
|
+
"""Provision a new Quanton cluster.
|
|
279
|
+
|
|
280
|
+
Returns:
|
|
281
|
+
Cluster ID
|
|
282
|
+
"""
|
|
283
|
+
data = {
|
|
284
|
+
"region": self.region,
|
|
285
|
+
"size": self.cluster_config.cluster_size,
|
|
286
|
+
"spark_version": self.cluster_config.spark_version,
|
|
287
|
+
"auto_scaling": {
|
|
288
|
+
"enabled": self.cluster_config.auto_scaling,
|
|
289
|
+
"min_workers": self.cluster_config.min_workers,
|
|
290
|
+
"max_workers": self.cluster_config.max_workers,
|
|
291
|
+
},
|
|
292
|
+
"idle_timeout_minutes": self.cluster_config.idle_timeout_minutes,
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
response = self._request("POST", "/clusters", data=data)
|
|
296
|
+
cluster_id = response.get("cluster_id")
|
|
297
|
+
if not cluster_id:
|
|
298
|
+
raise RuntimeError("API response missing cluster_id")
|
|
299
|
+
self._cluster_id = cluster_id
|
|
300
|
+
logger.info(f"Provisioned Quanton cluster: {self._cluster_id}")
|
|
301
|
+
return cluster_id
|
|
302
|
+
|
|
303
|
+
def terminate_cluster(self) -> None:
|
|
304
|
+
"""Terminate the current cluster."""
|
|
305
|
+
if self._cluster_id:
|
|
306
|
+
try:
|
|
307
|
+
self._request("DELETE", f"/clusters/{self._cluster_id}")
|
|
308
|
+
logger.info(f"Terminated cluster: {self._cluster_id}")
|
|
309
|
+
except Exception as e:
|
|
310
|
+
logger.warning(f"Failed to terminate cluster: {e}")
|
|
311
|
+
finally:
|
|
312
|
+
self._cluster_id = None
|
|
313
|
+
|
|
314
|
+
def submit_sql_job(
|
|
315
|
+
self,
|
|
316
|
+
sql: str,
|
|
317
|
+
database: str,
|
|
318
|
+
table_format: TableFormat = TableFormat.ICEBERG,
|
|
319
|
+
output_location: str | None = None,
|
|
320
|
+
spark_config: dict[str, str] | None = None,
|
|
321
|
+
job_name: str | None = None,
|
|
322
|
+
) -> str:
|
|
323
|
+
"""Submit a Spark SQL job for execution.
|
|
324
|
+
|
|
325
|
+
Args:
|
|
326
|
+
sql: SQL query to execute
|
|
327
|
+
database: Database name
|
|
328
|
+
table_format: Table format (hudi, iceberg, delta)
|
|
329
|
+
output_location: S3 location for results (optional)
|
|
330
|
+
spark_config: Additional Spark configuration
|
|
331
|
+
job_name: Optional job name for tracking
|
|
332
|
+
|
|
333
|
+
Returns:
|
|
334
|
+
Job ID for tracking
|
|
335
|
+
"""
|
|
336
|
+
job_id = job_name or f"benchbox-{uuid.uuid4().hex[:12]}"
|
|
337
|
+
|
|
338
|
+
data = {
|
|
339
|
+
"job_id": job_id,
|
|
340
|
+
"job_type": "sql",
|
|
341
|
+
"database": database,
|
|
342
|
+
"sql": sql,
|
|
343
|
+
"table_format": table_format.value,
|
|
344
|
+
"spark_config": spark_config or {},
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
if output_location:
|
|
348
|
+
data["output_location"] = output_location
|
|
349
|
+
|
|
350
|
+
if self._cluster_id:
|
|
351
|
+
data["cluster_id"] = self._cluster_id
|
|
352
|
+
|
|
353
|
+
response = self._request("POST", "/jobs", data=data)
|
|
354
|
+
submitted_job_id = response.get("job_id", job_id)
|
|
355
|
+
logger.debug(f"Submitted SQL job: {submitted_job_id}")
|
|
356
|
+
return submitted_job_id
|
|
357
|
+
|
|
358
|
+
def submit_pyspark_job(
|
|
359
|
+
self,
|
|
360
|
+
script: str,
|
|
361
|
+
script_args: list[str] | None = None,
|
|
362
|
+
database: str | None = None,
|
|
363
|
+
table_format: TableFormat = TableFormat.ICEBERG,
|
|
364
|
+
output_location: str | None = None,
|
|
365
|
+
spark_config: dict[str, str] | None = None,
|
|
366
|
+
job_name: str | None = None,
|
|
367
|
+
) -> str:
|
|
368
|
+
"""Submit a PySpark script job for execution.
|
|
369
|
+
|
|
370
|
+
Args:
|
|
371
|
+
script: PySpark script content
|
|
372
|
+
script_args: Command-line arguments for script
|
|
373
|
+
database: Database name
|
|
374
|
+
table_format: Table format (hudi, iceberg, delta)
|
|
375
|
+
output_location: S3 location for results
|
|
376
|
+
spark_config: Additional Spark configuration
|
|
377
|
+
job_name: Optional job name
|
|
378
|
+
|
|
379
|
+
Returns:
|
|
380
|
+
Job ID for tracking
|
|
381
|
+
"""
|
|
382
|
+
job_id = job_name or f"benchbox-{uuid.uuid4().hex[:12]}"
|
|
383
|
+
|
|
384
|
+
data = {
|
|
385
|
+
"job_id": job_id,
|
|
386
|
+
"job_type": "pyspark",
|
|
387
|
+
"script": script,
|
|
388
|
+
"script_args": script_args or [],
|
|
389
|
+
"table_format": table_format.value,
|
|
390
|
+
"spark_config": spark_config or {},
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
if database:
|
|
394
|
+
data["database"] = database
|
|
395
|
+
if output_location:
|
|
396
|
+
data["output_location"] = output_location
|
|
397
|
+
if self._cluster_id:
|
|
398
|
+
data["cluster_id"] = self._cluster_id
|
|
399
|
+
|
|
400
|
+
response = self._request("POST", "/jobs", data=data)
|
|
401
|
+
submitted_job_id = response.get("job_id", job_id)
|
|
402
|
+
logger.debug(f"Submitted PySpark job: {submitted_job_id}")
|
|
403
|
+
return submitted_job_id
|
|
404
|
+
|
|
405
|
+
def get_job_status(self, job_id: str) -> JobResult:
|
|
406
|
+
"""Get status of a job.
|
|
407
|
+
|
|
408
|
+
Args:
|
|
409
|
+
job_id: Job ID to check
|
|
410
|
+
|
|
411
|
+
Returns:
|
|
412
|
+
JobResult with current state
|
|
413
|
+
"""
|
|
414
|
+
response = self._request("GET", f"/jobs/{job_id}")
|
|
415
|
+
|
|
416
|
+
state_str = response.get("state", "PENDING")
|
|
417
|
+
try:
|
|
418
|
+
state = JobState(state_str.upper())
|
|
419
|
+
except ValueError:
|
|
420
|
+
state = JobState.PENDING
|
|
421
|
+
|
|
422
|
+
return JobResult(
|
|
423
|
+
job_id=job_id,
|
|
424
|
+
state=state,
|
|
425
|
+
duration_seconds=response.get("duration_seconds"),
|
|
426
|
+
error_message=response.get("error_message"),
|
|
427
|
+
output_location=response.get("output_location"),
|
|
428
|
+
metrics=response.get("metrics", {}),
|
|
429
|
+
)
|
|
430
|
+
|
|
431
|
+
def wait_for_job(
|
|
432
|
+
self,
|
|
433
|
+
job_id: str,
|
|
434
|
+
timeout_minutes: int = 60,
|
|
435
|
+
poll_interval_seconds: int = 5,
|
|
436
|
+
) -> JobResult:
|
|
437
|
+
"""Wait for a job to complete.
|
|
438
|
+
|
|
439
|
+
Args:
|
|
440
|
+
job_id: Job ID to wait for
|
|
441
|
+
timeout_minutes: Maximum wait time
|
|
442
|
+
poll_interval_seconds: Interval between status checks
|
|
443
|
+
|
|
444
|
+
Returns:
|
|
445
|
+
Final JobResult
|
|
446
|
+
|
|
447
|
+
Raises:
|
|
448
|
+
RuntimeError: If job fails or times out
|
|
449
|
+
"""
|
|
450
|
+
timeout_seconds = timeout_minutes * 60
|
|
451
|
+
start_time = time.time()
|
|
452
|
+
|
|
453
|
+
while time.time() - start_time < timeout_seconds:
|
|
454
|
+
result = self.get_job_status(job_id)
|
|
455
|
+
|
|
456
|
+
if result.state.is_terminal:
|
|
457
|
+
if result.state.is_success:
|
|
458
|
+
logger.info(f"Job {job_id} succeeded in {result.duration_seconds:.1f}s")
|
|
459
|
+
return result
|
|
460
|
+
else:
|
|
461
|
+
error_msg = result.error_message or f"Job failed with state: {result.state}"
|
|
462
|
+
raise RuntimeError(f"Job {job_id} failed: {error_msg}")
|
|
463
|
+
|
|
464
|
+
logger.debug(f"Job {job_id} state: {result.state}")
|
|
465
|
+
time.sleep(poll_interval_seconds)
|
|
466
|
+
|
|
467
|
+
raise RuntimeError(f"Job {job_id} timed out after {timeout_minutes} minutes")
|
|
468
|
+
|
|
469
|
+
def cancel_job(self, job_id: str) -> None:
|
|
470
|
+
"""Cancel a running job.
|
|
471
|
+
|
|
472
|
+
Args:
|
|
473
|
+
job_id: Job ID to cancel
|
|
474
|
+
"""
|
|
475
|
+
self._request("POST", f"/jobs/{job_id}/cancel")
|
|
476
|
+
logger.info(f"Cancelled job: {job_id}")
|
|
477
|
+
|
|
478
|
+
def get_job_results(self, job_id: str) -> list[dict[str, Any]]:
|
|
479
|
+
"""Retrieve job results.
|
|
480
|
+
|
|
481
|
+
Args:
|
|
482
|
+
job_id: Job ID
|
|
483
|
+
|
|
484
|
+
Returns:
|
|
485
|
+
List of result rows as dicts
|
|
486
|
+
"""
|
|
487
|
+
response = self._request("GET", f"/jobs/{job_id}/results")
|
|
488
|
+
return response.get("rows", [])
|
|
489
|
+
|
|
490
|
+
def create_database(self, database: str, location: str | None = None) -> None:
|
|
491
|
+
"""Create a database in the Quanton metastore.
|
|
492
|
+
|
|
493
|
+
Args:
|
|
494
|
+
database: Database name
|
|
495
|
+
location: S3 location for database storage
|
|
496
|
+
"""
|
|
497
|
+
data = {"database": database}
|
|
498
|
+
if location:
|
|
499
|
+
data["location"] = location
|
|
500
|
+
|
|
501
|
+
self._request("POST", "/databases", data=data)
|
|
502
|
+
logger.info(f"Created database: {database}")
|
|
503
|
+
|
|
504
|
+
def close(self) -> None:
|
|
505
|
+
"""Close the client and clean up resources."""
|
|
506
|
+
self.terminate_cluster()
|
|
507
|
+
if self._session:
|
|
508
|
+
self._session.close()
|
|
509
|
+
self._session = None
|