{
  "benchmark": {
    "id": "amplab",
    "name": "AMPLab Big Data",
    "scale_factor": 1.0,
    "test_type": "power"
  },
  "config": {
    "compression": {
      "level": 9,
      "type": "zstd"
    },
    "mode": "sql",
    "phases": [
      "generate",
      "load",
      "power"
    ],
    "platform_option_sources": {
      "force_recreate": "saved_config",
      "force_upload": "saved_config",
      "memory_limit": "saved_config",
      "normalize_plan_literals": "saved_config",
      "show_query_plans": "saved_config",
      "tuning_source": "saved_config",
      "tuning_source_file": "path_d969e086da79"
    },
    "platform_options": {
      "force_recreate": false,
      "force_upload": false,
      "memory_limit": "8GB",
      "normalize_plan_literals": false,
      "show_query_plans": false,
      "tuning_source": "auto_discovered",
      "tuning_source_file": "path_4ca0c5a7edb4"
    }
  },
  "cost": {
    "model": "actual",
    "total_usd": 0
  },
  "environment": {
    "arch": "arm64",
    "client_host": {
      "arch": "arm64",
      "cpu_model": "Apple M4",
      "cpu_vendor": "Apple",
      "os": "Darwin",
      "python": "3.12.13"
    },
    "cpu_model": "Apple M4",
    "cpu_vendor": "Apple",
    "os": "Darwin",
    "platform_runtime": {
      "collection_status": "partial",
      "runtime_type": "local_process",
      "source": "inferred"
    },
    "python": "3.12.13"
  },
  "execution": {
    "compression": {
      "level": 9,
      "type": "zstd"
    },
    "driver_package": "duckdb",
    "driver_runtime_strategy": "current-process",
    "driver_version_actual": "1.3.2",
    "driver_version_resolved": "1.3.2",
    "entry_point": "cli",
    "mode": "sql",
    "non_interactive": true,
    "phases": [
      "generate",
      "load",
      "power"
    ],
    "timestamp": "2026-08-29T21:41:12.471070",
    "translation": {
      "attempt_count": 40,
      "failed_count": 0,
      "fallback_count": 0,
      "outcomes": [
        {
          "count": 40,
          "normalized_source_dialect": "postgres",
          "normalized_target_dialect": "duckdb",
          "source_dialect": "netezza",
          "status": "success",
          "strict_mode": false,
          "target_dialect": "duckdb",
          "translator": "sqlglot"
        }
      ],
      "source_dialects": [
        "netezza"
      ],
      "status": "success",
      "strict_mode": false,
      "success_count": 40,
      "target_dialects": [
        "duckdb"
      ],
      "translators": [
        "sqlglot"
      ]
    },
    "tuning_mode": "tuned"
  },
  "export": {
    "anonymized": true,
    "timestamp": "2026-08-29T21:41:17.656927",
    "tool": "benchbox-exporter"
  },
  "normalized_cost": {
    "billing_unit": "not_applicable",
    "cost_model_source": "benchbox.core.cost.pricing",
    "cost_model_version": "2025.11",
    "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": 4638,
      "status": "SUCCESS"
    },
    "power_test": {
      "duration_ms": 360,
      "status": "COMPLETED"
    },
    "schema_creation": {
      "duration_ms": 0,
      "status": "SUCCESS"
    },
    "throughput_test": {
      "status": "NOT_RUN"
    },
    "validation": {
      "duration_ms": 50,
      "status": "PASSED"
    }
  },
  "platform": {
    "client_version": "1.3.2",
    "cloud": {
      "collection_status": "unavailable",
      "source": "unavailable"
    },
    "compute": {
      "collection_status": "partial",
      "result_cache_enabled": false,
      "source": "requested"
    },
    "config": {
      "connection_mode": "file",
      "driver_package": "duckdb",
      "driver_runtime_strategy": "current-process",
      "driver_version_actual": "1.3.2",
      "driver_version_resolved": "1.3.2",
      "enable_progress_bar": false,
      "execution_mode": "sql",
      "memory_limit": "8GB",
      "result_cache_enabled": false,
      "thread_limit": 8
    },
    "deployment": {
      "collection_status": "partial",
      "connection_mode": "file",
      "deployment_type": "embedded",
      "endpoint_class": "embedded_process",
      "metadata_source": "inferred"
    },
    "driver_actual_version": "1.3.2",
    "driver_package": "duckdb",
    "driver_resolved_version": "1.3.2",
    "driver_runtime_strategy": "current-process",
    "name": "DuckDB",
    "raw_config": {
      "enable_progress_bar": false,
      "force_recreate": false,
      "memory_limit": "8GB",
      "result_cache_enabled": false,
      "thread_limit": 8,
      "tuning_source": "auto_discovered",
      "tuning_source_file": "path_4ca0c5a7edb4",
      "type": "duckdb"
    },
    "storage": {
      "collection_status": "unavailable",
      "source": "unavailable"
    },
    "tuning": {
      "applied": {
        "dropped": [
          {
            "redacted": true
          }
        ],
        "receipt": {
          "corroborated": false,
          "dropped": [
            {
              "redacted": true
            }
          ],
          "entries": [
            {
              "kind": "index",
              "phase": "ddl",
              "statement_redacted": true,
              "verdict": "mismatch"
            },
            {
              "kind": "index",
              "phase": "ddl",
              "statement_redacted": true,
              "verdict": "mismatch"
            },
            {
              "kind": "index",
              "phase": "post_load",
              "statement_redacted": true,
              "verdict": "mismatch"
            },
            {
              "kind": "index",
              "phase": "post_load",
              "statement_redacted": true,
              "verdict": "mismatch"
            }
          ],
          "observed": [
            {
              "kind": "index",
              "redacted": true
            },
            {
              "kind": "index",
              "redacted": true
            }
          ],
          "platform": "duckdb",
          "summary": {
            "gate_relevant_total": 4,
            "mismatch": 4
          }
        },
        "statements": [
          {
            "phase": "ddl",
            "statement_redacted": true,
            "status": "executed"
          },
          {
            "phase": "ddl",
            "statement_redacted": true,
            "status": "executed"
          },
          {
            "mechanism": "sort_index",
            "phase": "post_load",
            "statement_redacted": true,
            "status": "executed"
          },
          {
            "mechanism": "sort_index",
            "phase": "post_load",
            "statement_redacted": true,
            "status": "executed"
          }
        ],
        "status": "applied_unverified"
      },
      "applied_ledger_hash": "78b52f53a5deb6ab96a543e43c1260f9976b67107ae6e2b46f6e71b6d74c308b",
      "counts": {
        "tables_tuned": 2,
        "tuning_types": [
          "check_constraints",
          "sorting"
        ]
      },
      "hash": "ad05d4d048df623a97403f22c71a1c04edbce9edcde501e7fcd9cb30c66e5780",
      "requested": {
        "constraints": {
          "check_constraints": {
            "enabled": true,
            "enforce_on_insert": true,
            "enforce_on_update": true
          },
          "foreign_keys": {
            "enabled": false,
            "enforce_referential_integrity": false,
            "on_delete_action": "RESTRICT",
            "on_update_action": "RESTRICT"
          },
          "primary_keys": {
            "enabled": false,
            "enforce_uniqueness": false,
            "nullable": false
          },
          "unique_constraints": {
            "enabled": false,
            "ignore_nulls": false
          }
        },
        "table_tunings": {
          "table_175f8aff709e": {
            "sorting": [
              {
                "name": "column_093184f03117",
                "order": 1,
                "type": "REAL"
              }
            ],
            "table_name": "table_175f8aff709e"
          },
          "table_67550096cfd7": {
            "partitioning": [
              {
                "name": "column_9ad995940fcc",
                "order": 1,
                "type": "VARCHAR"
              }
            ],
            "sorting": [
              {
                "name": "column_474f66c9babc",
                "order": 1,
                "type": "VARCHAR"
              }
            ],
            "table_name": "table_67550096cfd7"
          }
        }
      },
      "requested_config_hash": "ad05d4d048df623a97403f22c71a1c04edbce9edcde501e7fcd9cb30c66e5780",
      "source": "yaml",
      "source_file": "examples/tunings/duckdb/amplab_tuned.yaml",
      "tuning_policy_generation": "adr-003",
      "tuning_source": "auto_discovered",
      "validation_status": "applied_unverified"
    },
    "version": "1.3.2"
  },
  "queries": [
    {
      "id": "1",
      "iter": 0,
      "ms": 3.8,
      "rows": 1174,
      "run_type": "warmup",
      "status": "SUCCESS",
      "stream": 0
    },
    {
      "id": "1a",
      "iter": 0,
      "ms": 1.3,
      "rows": 1,
      "run_type": "warmup",
      "status": "SUCCESS",
      "stream": 0
    },
    {
      "id": "2",
      "iter": 0,
      "ms": 21.6,
      "rows": 100,
      "run_type": "warmup",
      "status": "SUCCESS",
      "stream": 0
    },
    {
      "id": "2a",
      "iter": 0,
      "ms": 13.1,
      "rows": 100,
      "run_type": "warmup",
      "status": "SUCCESS",
      "stream": 0
    },
    {
      "id": "3",
      "iter": 0,
      "ms": 9.1,
      "rows": 0,
      "run_type": "warmup",
      "status": "SUCCESS",
      "stream": 0
    },
    {
      "id": "3a",
      "iter": 0,
      "ms": 40.0,
      "rows": 100,
      "run_type": "warmup",
      "status": "SUCCESS",
      "stream": 0
    },
    {
      "id": "4",
      "iter": 0,
      "ms": 8.8,
      "rows": 100,
      "run_type": "warmup",
      "status": "SUCCESS",
      "stream": 0
    },
    {
      "id": "5",
      "iter": 0,
      "ms": 14.6,
      "rows": 1,
      "run_type": "warmup",
      "status": "SUCCESS",
      "stream": 0
    },
    {
      "id": "1",
      "iter": 1,
      "ms": 3.4,
      "rows": 1174,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1
    },
    {
      "id": "1a",
      "iter": 1,
      "ms": 1.1,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1
    },
    {
      "id": "2",
      "iter": 1,
      "ms": 16.9,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1
    },
    {
      "id": "2a",
      "iter": 1,
      "ms": 11.8,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1
    },
    {
      "id": "3",
      "iter": 1,
      "ms": 7.9,
      "rows": 0,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1
    },
    {
      "id": "3a",
      "iter": 1,
      "ms": 19.5,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1
    },
    {
      "id": "4",
      "iter": 1,
      "ms": 8.0,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1
    },
    {
      "id": "5",
      "iter": 1,
      "ms": 13.2,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 1
    },
    {
      "id": "1",
      "iter": 2,
      "ms": 3.6,
      "rows": 1174,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2
    },
    {
      "id": "1a",
      "iter": 2,
      "ms": 1.2,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2
    },
    {
      "id": "2",
      "iter": 2,
      "ms": 17.1,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2
    },
    {
      "id": "2a",
      "iter": 2,
      "ms": 11.8,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2
    },
    {
      "id": "3",
      "iter": 2,
      "ms": 7.8,
      "rows": 0,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2
    },
    {
      "id": "3a",
      "iter": 2,
      "ms": 19.7,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2
    },
    {
      "id": "4",
      "iter": 2,
      "ms": 8.3,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2
    },
    {
      "id": "5",
      "iter": 2,
      "ms": 13.5,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 2
    },
    {
      "id": "1",
      "iter": 3,
      "ms": 3.4,
      "rows": 1174,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3
    },
    {
      "id": "1a",
      "iter": 3,
      "ms": 1.1,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3
    },
    {
      "id": "2",
      "iter": 3,
      "ms": 16.7,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3
    },
    {
      "id": "2a",
      "iter": 3,
      "ms": 12.9,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3
    },
    {
      "id": "3",
      "iter": 3,
      "ms": 7.6,
      "rows": 0,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3
    },
    {
      "id": "3a",
      "iter": 3,
      "ms": 19.4,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3
    },
    {
      "id": "4",
      "iter": 3,
      "ms": 8.1,
      "rows": 100,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3
    },
    {
      "id": "5",
      "iter": 3,
      "ms": 14.4,
      "rows": 1,
      "run_type": "measurement",
      "status": "SUCCESS",
      "stream": 3
    }
  ],
  "run": {
    "id": "d88b37e5",
    "iterations": 3,
    "query_time_ms": 249,
    "streams": 4,
    "timestamp": "2026-08-29T21:41:17.628651",
    "total_duration_ms": 5070
  },
  "summary": {
    "data": {
      "load_time_ms": 4638.4,
      "rows_loaded": 2875000
    },
    "queries": {
      "failed": 0,
      "passed": 24,
      "total": 24
    },
    "timing": {
      "avg_ms": 10.4,
      "geometric_mean_ms": 7.8,
      "max_ms": 19.7,
      "min_ms": 1.1,
      "p90_ms": 19.4,
      "p95_ms": 19.5,
      "p99_ms": 19.7,
      "stdev_ms": 6.1,
      "total_ms": 248.6
    },
    "validation": "passed"
  },
  "tables": {
    "documents": {
      "rows": 125000
    },
    "rankings": {
      "rows": 250000
    },
    "uservisits": {
      "rows": 2500000
    }
  },
  "version": "2.2"
}
