{
  "benchmark": {
    "compliance_class": "official",
    "data_generation_hash": "a3d4867993df7a580ced7a429356856daff442d282b1d36b1f5ad79e3245d703",
    "data_generation_version": 1,
    "id": "tpch",
    "name": "TPC-H",
    "scale_factor": 1.0,
    "test_type": "throughput"
  },
  "config": {
    "compression": {
      "level": null,
      "type": "zstd"
    },
    "mode": "sql",
    "phases": [
      "generate",
      "load",
      "throughput"
    ],
    "platform_option_sources": {
      "adaptive_enabled": "saved_config",
      "force_recreate": "saved_config",
      "force_upload": "saved_config",
      "normalize_plan_literals": "saved_config",
      "show_query_plans": "saved_config",
      "tuning_source": "saved_config"
    },
    "platform_options": {
      "adaptive_enabled": true,
      "force_recreate": false,
      "force_upload": false,
      "normalize_plan_literals": false,
      "show_query_plans": false,
      "tuning_source": "baseline"
    },
    "query_parameters": "qgen -r (20260709 + 1001 * stream_id + query_position)",
    "seed": 20260709
  },
  "cost": {
    "model": "estimated",
    "total_usd": 0.0
  },
  "environment": {
    "arch": "arm64",
    "client_host": {
      "arch": "arm64",
      "cpu_count": 10,
      "cpu_identity_provenance": "measured",
      "cpu_model": "Apple M4",
      "cpu_vendor": "Apple",
      "memory_gb": 16.0,
      "os": "Darwin 27.0.0",
      "python": "3.12.13"
    },
    "client_link": {
      "collection_error_class": "AttributeError",
      "collection_error_message": "AttributeError: statement overhead probe failed",
      "collection_status": "unavailable",
      "source": "unavailable"
    },
    "cpu_count": 10,
    "cpu_identity_provenance": "measured",
    "cpu_model": "Apple M4",
    "cpu_vendor": "Apple",
    "memory_gb": 16.0,
    "os": "Darwin 27.0.0",
    "platform_runtime": {
      "collection_status": "partial",
      "runtime_type": "local_process",
      "source": "inferred"
    },
    "python": "3.12.13"
  },
  "execution": {
    "compression": {
      "type": "zstd"
    },
    "driver_package": "pyspark",
    "driver_runtime_strategy": "current-process",
    "driver_version_actual": "4.2.0",
    "driver_version_resolved": "4.2.0",
    "entry_point": "cli",
    "mode": "sql",
    "non_interactive": true,
    "official": true,
    "phases": [
      "generate",
      "load",
      "throughput"
    ],
    "seed": 20260709,
    "timestamp": "2026-10-07T15:14:48.614809",
    "translation": {
      "attempt_count": 89,
      "failed_count": 0,
      "fallback_count": 0,
      "outcomes": [
        {
          "calls": 88,
          "count": 88,
          "normalized_source_dialect": "postgres",
          "normalized_target_dialect": "spark",
          "parser_grammar": "postgres",
          "scope": "workload_query",
          "source_dialect": "netezza",
          "status": "success",
          "strict_mode": false,
          "target_dialect": "spark",
          "translator": "sqlglot",
          "unique_queries": 84
        },
        {
          "calls": 1,
          "count": 1,
          "normalized_source_dialect": "postgres",
          "normalized_target_dialect": "spark",
          "parser_grammar": "postgres",
          "scope": "schema_ddl",
          "source_dialect": "standard",
          "status": "success",
          "strict_mode": false,
          "target_dialect": "spark",
          "translator": "sqlglot",
          "unique_queries": 1
        }
      ],
      "schema_statements_translated": 1,
      "source_dialects": [
        "netezza",
        "standard"
      ],
      "status": "success",
      "strict_mode": false,
      "success_count": 89,
      "target_dialects": [
        "spark"
      ],
      "total_transpilation_calls": 89,
      "translators": [
        "sqlglot"
      ],
      "unique_queries_translated": 84
    },
    "tuning_mode": "notuning"
  },
  "export": {
    "anonymized": true,
    "benchbox_version": "0.4.2",
    "timestamp": "2026-10-07T15:20:57.908252",
    "tool": "benchbox-exporter"
  },
  "normalized_cost": {
    "billing_unit": "not_applicable",
    "cost_model_source": "benchbox.core.cost.pricing",
    "cost_model_version": "2026.09",
    "cost_scope": "compute_only",
    "cost_status": "not_applicable_local",
    "cost_usd": null,
    "deployment": {
      "cloud_provider": null,
      "cloud_region": null,
      "cluster_size": null,
      "instance_type": null,
      "node_count": null,
      "storage_format": null,
      "storage_tier": null,
      "warehouse_size": null
    },
    "normalized_cost_usd": "0",
    "pricing_region": "not_applicable"
  },
  "phases": {
    "data_generation": {
      "duration_ms": 0,
      "status": "SUCCESS"
    },
    "data_loading": {
      "duration_ms": 192896,
      "status": "SUCCESS"
    },
    "power_test": {
      "status": "NOT_RUN"
    },
    "schema_creation": {
      "duration_ms": 1994,
      "status": "SUCCESS"
    },
    "throughput_test": {
      "duration_ms": 154089,
      "status": "COMPLETED",
      "stream_numbering": {
        "basis": "tpc_spec_throughput_streams_1_to_s",
        "first_stream_id": 1
      },
      "stream_results": [
        {
          "stream_id": 3,
          "success": true
        },
        {
          "stream_id": 1,
          "success": true
        },
        {
          "stream_id": 2,
          "success": true
        }
      ]
    },
    "validation": {
      "duration_ms": 960,
      "status": "PASSED"
    }
  },
  "platform": {
    "client_version": "4.2.0",
    "cloud": {
      "collection_status": "unavailable",
      "source": "unavailable"
    },
    "compute": {
      "collection_status": "unavailable",
      "source": "unavailable"
    },
    "config": {
      "adaptive_enabled": true,
      "connection_mode": "local",
      "database": "database_e946c1236ae8",
      "driver_memory": "4g",
      "driver_package": "pyspark",
      "driver_runtime_strategy": "current-process",
      "driver_version_actual": "4.2.0",
      "driver_version_resolved": "4.2.0",
      "execution_mode": "sql",
      "executor_cores": 2,
      "executor_memory": "4g",
      "hive_enabled": false,
      "master": "local[*]",
      "num_executors": 0,
      "shuffle_partitions": 200,
      "spark_app_id": "local-1791400493256",
      "spark_master": "local[*]",
      "table_format": "parquet"
    },
    "deployment": {
      "collection_status": "partial",
      "connection_mode": "local",
      "deployment_type": "embedded",
      "endpoint_class": "unknown",
      "metadata_source": "inferred"
    },
    "driver_actual_version": "4.2.0",
    "driver_package": "pyspark",
    "driver_resolved_version": "4.2.0",
    "driver_runtime_strategy": "current-process",
    "name": "Spark",
    "raw_config": {
      "adaptive_enabled": true,
      "database": "database_e946c1236ae8",
      "driver_memory": "4g",
      "executor_cores": 2,
      "executor_memory": "4g",
      "hive_enabled": false,
      "num_executors": 0,
      "shuffle_partitions": 200,
      "spark_app_id": "local-1791400493256",
      "spark_master": "local[*]",
      "table_format": "parquet",
      "tuning_source": "baseline",
      "type": "spark",
      "warehouse_dir": "path_ca6004ea06b1"
    },
    "raw_metadata": {
      "master": "local[*]"
    },
    "storage": {
      "collection_status": "partial",
      "source": "requested",
      "table_format": "parquet"
    },
    "tuning": {
      "validation_status": "not_applicable"
    },
    "version": "4.2.0"
  },
  "queries": [
    {
      "id": "8",
      "iter": 1,
      "ms": 15186.6,
      "rows": 2,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "5",
      "iter": 1,
      "ms": 6185.3,
      "rows": 5,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "4",
      "iter": 1,
      "ms": 9879.5,
      "rows": 5,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "6",
      "iter": 1,
      "ms": 1108.9,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "17",
      "iter": 1,
      "ms": 6764.4,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "7",
      "iter": 1,
      "ms": 5454.9,
      "rows": 4,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "1",
      "iter": 1,
      "ms": 13902.7,
      "rows": 4,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "18",
      "iter": 1,
      "ms": 7638.9,
      "rows": 10,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "22",
      "iter": 1,
      "ms": 5550.4,
      "rows": 7,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "14",
      "iter": 1,
      "ms": 3025.6,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "9",
      "iter": 1,
      "ms": 5929.0,
      "rows": 175,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "10",
      "iter": 1,
      "ms": 5502.7,
      "rows": 20,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "15",
      "iter": 1,
      "ms": 3985.0,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "11",
      "iter": 1,
      "ms": 2267.1,
      "rows": 1469,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "20",
      "iter": 1,
      "ms": 5876.6,
      "rows": 186,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "2",
      "iter": 1,
      "ms": 1789.0,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "21",
      "iter": 1,
      "ms": 11461.9,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "19",
      "iter": 1,
      "ms": 2869.1,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "13",
      "iter": 1,
      "ms": 13480.6,
      "rows": 42,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "16",
      "iter": 1,
      "ms": 4917.4,
      "rows": 18215,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "12",
      "iter": 1,
      "ms": 9510.2,
      "rows": 2,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "3",
      "iter": 1,
      "ms": 4598.3,
      "rows": 10,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3,
      "test_type": "throughput"
    },
    {
      "id": "21",
      "iter": 1,
      "ms": 15238.0,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "3",
      "iter": 1,
      "ms": 6050.2,
      "rows": 10,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "18",
      "iter": 1,
      "ms": 8491.0,
      "rows": 9,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "5",
      "iter": 1,
      "ms": 8400.8,
      "rows": 5,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "11",
      "iter": 1,
      "ms": 6166.8,
      "rows": 1031,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "7",
      "iter": 1,
      "ms": 14135.5,
      "rows": 4,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "6",
      "iter": 1,
      "ms": 5215.3,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "20",
      "iter": 1,
      "ms": 4237.3,
      "rows": 205,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "17",
      "iter": 1,
      "ms": 5115.1,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "12",
      "iter": 1,
      "ms": 2545.6,
      "rows": 2,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "16",
      "iter": 1,
      "ms": 10541.6,
      "rows": 18252,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "15",
      "iter": 1,
      "ms": 3995.0,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "13",
      "iter": 1,
      "ms": 2584.0,
      "rows": 42,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "10",
      "iter": 1,
      "ms": 4356.3,
      "rows": 20,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "2",
      "iter": 1,
      "ms": 2011.2,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "8",
      "iter": 1,
      "ms": 12408.4,
      "rows": 2,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "14",
      "iter": 1,
      "ms": 2992.7,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "19",
      "iter": 1,
      "ms": 9781.0,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "9",
      "iter": 1,
      "ms": 6838.8,
      "rows": 175,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "22",
      "iter": 1,
      "ms": 3652.7,
      "rows": 7,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "1",
      "iter": 1,
      "ms": 9283.7,
      "rows": 4,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "4",
      "iter": 1,
      "ms": 2883.5,
      "rows": 5,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1,
      "test_type": "throughput"
    },
    {
      "id": "6",
      "iter": 1,
      "ms": 6113.5,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "17",
      "iter": 1,
      "ms": 12495.4,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "14",
      "iter": 1,
      "ms": 2625.2,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "16",
      "iter": 1,
      "ms": 11548.2,
      "rows": 18398,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "19",
      "iter": 1,
      "ms": 6258.4,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "10",
      "iter": 1,
      "ms": 5315.4,
      "rows": 20,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "9",
      "iter": 1,
      "ms": 21807.7,
      "rows": 175,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "2",
      "iter": 1,
      "ms": 1793.8,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "15",
      "iter": 1,
      "ms": 7589.7,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "8",
      "iter": 1,
      "ms": 6265.6,
      "rows": 2,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "5",
      "iter": 1,
      "ms": 4432.2,
      "rows": 5,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "22",
      "iter": 1,
      "ms": 2578.6,
      "rows": 7,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "12",
      "iter": 1,
      "ms": 2537.2,
      "rows": 2,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "7",
      "iter": 1,
      "ms": 5599.6,
      "rows": 4,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "13",
      "iter": 1,
      "ms": 10668.6,
      "rows": 42,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "18",
      "iter": 1,
      "ms": 7751.3,
      "rows": 9,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "1",
      "iter": 1,
      "ms": 12287.5,
      "rows": 4,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "4",
      "iter": 1,
      "ms": 3586.9,
      "rows": 5,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "20",
      "iter": 1,
      "ms": 9392.0,
      "rows": 164,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "3",
      "iter": 1,
      "ms": 5746.8,
      "rows": 10,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "11",
      "iter": 1,
      "ms": 1362.0,
      "rows": 1241,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    },
    {
      "id": "21",
      "iter": 1,
      "ms": 6327.3,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2,
      "test_type": "throughput"
    }
  ],
  "result_schema_version": "2.2",
  "run": {
    "id": "cc60a6b0",
    "iterations": 1,
    "query_time_ms": 447891,
    "streams": 3,
    "timestamp": "2026-10-07T15:20:57.227546",
    "total_duration_ms": 367266
  },
  "summary": {
    "data": {
      "load_time_ms": 192896.3,
      "rows_loaded": 8661245
    },
    "queries": {
      "failed": 0,
      "passed": 66,
      "total": 66
    },
    "timing": {
      "avg_ms": 6786.2,
      "geometric_mean_ms": 5619.3,
      "max_ms": 21807.7,
      "min_ms": 1108.9,
      "p90_ms": 12495.4,
      "p95_ms": 14135.5,
      "p99_ms": 21807.7,
      "stdev_ms": 4142.7,
      "total_ms": 447891.3
    },
    "tpc_metrics": {
      "throughput_at_size": 1541.9623278501538
    },
    "validation": "passed"
  },
  "tables": {
    "customer": {
      "load_ms": 20515,
      "rows": 150000
    },
    "lineitem": {
      "load_ms": 136595,
      "rows": 6001215
    },
    "nation": {
      "load_ms": 1059,
      "rows": 25
    },
    "orders": {
      "load_ms": 20659,
      "rows": 1500000
    },
    "part": {
      "load_ms": 5313,
      "rows": 200000
    },
    "partsupp": {
      "load_ms": 5648,
      "rows": 800000
    },
    "region": {
      "load_ms": 276,
      "rows": 5
    },
    "supplier": {
      "load_ms": 2756,
      "rows": 10000
    }
  },
  "version": "2.2"
}
