{
  "profile-expanded-join": {
    "io": {
      "total_bytes_read": 0,
      "total_bytes_written": 0
    },
    "operator": [
      {
        "extra_info": {},
        "intermediate_rows": 0,
        "intermediate_size_bytes": 0,
        "timing": 0.0,
        "type": "RESULT_COLLECTOR",
        "children": [
          {
            "extra_info": {},
            "intermediate_rows": 0,
            "intermediate_size_bytes": 0,
            "timing": 4.1e-08,
            "type": "EXPLAIN_ANALYZE",
            "children": [
              {
                "extra_info": {
                  "Aggregates": "count_star()",
                  "Estimated Cardinality": "1"
                },
                "intermediate_rows": 1,
                "intermediate_size_bytes": 8,
                "timing": 1.125e-06,
                "type": "UNGROUPED_AGGREGATE",
                "children": [
                  {
                    "extra_info": {
                      "Join Type": "INNER",
                      "Conditions": "region = region",
                      "Estimated Cardinality": "10000"
                    },
                    "intermediate_rows": 16000,
                    "intermediate_size_bytes": 512000,
                    "timing": 0.00011891799999999999,
                    "type": "HASH_JOIN",
                    "children": [
                      {
                        "extra_info": {
                          "Table": "memory.main.orders",
                          "Type": "Sequential Scan",
                          "Projections": "region",
                          "Filters": "(status = 'paid')",
                          "Dynamic Filters": "(optional: (region IN ('West', 'North', 'South', 'East')) AND optional: region IN BF(region))",
                          "Estimated Cardinality": "5000"
                        },
                        "intermediate_rows": 8000,
                        "intermediate_size_bytes": 128000,
                        "row_groups_scanned": 1,
                        "rows_scanned": 10000,
                        "timing": 0.000132042,
                        "total_row_groups_to_scan": 1,
                        "type": "TABLE_SCAN"
                      },
                      {
                        "extra_info": {
                          "Table": "memory.main.promotions",
                          "Type": "Sequential Scan",
                          "Projections": "region",
                          "Estimated Cardinality": "8"
                        },
                        "intermediate_rows": 8,
                        "intermediate_size_bytes": 128,
                        "row_groups_scanned": 1,
                        "rows_scanned": 8,
                        "timing": 1.542e-06,
                        "total_row_groups_to_scan": 1,
                        "type": "TABLE_SCAN"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "optimizer": {
      "aggregate_function_rewriter": 1.709e-06,
      "aggregate_reuse": 1.125e-06,
      "build_side_probe_side": 2.417e-06,
      "column_lifetime": 1.666e-06,
      "common_aggregate": 5e-07,
      "common_subexpressions": 4.58e-07,
      "common_subplan": 1.1583e-05,
      "cte_filter_pusher": 1.67e-07,
      "cte_inlining": 1.24e-07,
      "deliminator": 1.67e-07,
      "duplicate_groups": 6.66e-07,
      "empty_result_pullup": 2.09e-07,
      "expression_rewriter": 1.175e-05,
      "filter_pullup": 4.58e-07,
      "filter_pushdown": 1.3917e-05,
      "grouping_sets": 2.5e-07,
      "in_clause": 1.67e-07,
      "join_elimination": 9.58e-07,
      "join_filter_pushdown": 8.708e-06,
      "join_order": 2.6583e-05,
      "late_materialization": 2.09e-07,
      "limit_pushdown": 1.25e-07,
      "outer_join_simplification": 1.125e-06,
      "partial_aggregate_pushdown": 5e-07,
      "partitioned_execution": 1.67e-07,
      "projection_placement": 4.58e-07,
      "projection_pullup": 6.66e-07,
      "redundant_order_keys": 5.42e-07,
      "regex_range": 1.25e-07,
      "reorder_filter": 2.08e-07,
      "row_group_pruner": 1.66e-07,
      "row_number_rewriter": 1.25e-07,
      "sampling_pushdown": 1.25e-07,
      "scalar_fn_pushdown": 1.25e-07,
      "statistics_propagation": 8.167e-06,
      "top_n": 8.3e-08,
      "top_n_window_elimination": 4.59e-07,
      "total_time": 0.000120291,
      "type_pushdown": 1.25e-07,
      "unnest_rewriter": 2.08e-07,
      "unused_columns": 4.333e-06,
      "window_self_join": 1.25e-07
    },
    "physical_planner": {
      "column_binding": 1.417e-06,
      "create_plan": 5.167e-06,
      "resolve_types": 2.08e-07,
      "total_time": 8.417e-06
    },
    "planner": {
      "binding_time": 2.9292e-05,
      "total_time": 5.0875e-05
    },
    "query": {
      "cpu_time": 0.00025366799999999997,
      "sql": "EXPLAIN (ANALYZE, FORMAT JSON) SELECT count(*) AS qualifying_orders\nFROM orders o JOIN promotions p ON o.region = p.region\nWHERE o.status = 'paid';",
      "total_intermediate_rows": 24009,
      "total_intermediate_size_bytes": 640136,
      "total_row_groups_scanned": 2,
      "total_row_groups_to_scan": 2,
      "total_rows_scanned": 10008,
      "total_time": 0.000566292
    },
    "system": {
      "blocked_thread_time": 0.000354,
      "peak_buffer_memory": 1601440,
      "peak_streaming_buffer_size": 0,
      "peak_temp_dir_size": 0,
      "total_memory_allocated": 786432
    }
  },
  "profile-exists": {
    "io": {
      "total_bytes_read": 0,
      "total_bytes_written": 0
    },
    "operator": [
      {
        "extra_info": {},
        "intermediate_rows": 0,
        "intermediate_size_bytes": 0,
        "timing": 0.0,
        "type": "RESULT_COLLECTOR",
        "children": [
          {
            "extra_info": {},
            "intermediate_rows": 0,
            "intermediate_size_bytes": 0,
            "timing": 8.4e-08,
            "type": "EXPLAIN_ANALYZE",
            "children": [
              {
                "extra_info": {
                  "Aggregates": "count_star()",
                  "Estimated Cardinality": "1"
                },
                "intermediate_rows": 1,
                "intermediate_size_bytes": 8,
                "timing": 8.74e-07,
                "type": "UNGROUPED_AGGREGATE",
                "children": [
                  {
                    "extra_info": {
                      "Join Type": "SEMI",
                      "Conditions": "region = region",
                      "Estimated Cardinality": "1000"
                    },
                    "intermediate_rows": 8000,
                    "intermediate_size_bytes": 128000,
                    "timing": 6.1667e-05,
                    "type": "HASH_JOIN",
                    "children": [
                      {
                        "extra_info": {
                          "Table": "memory.main.orders",
                          "Type": "Sequential Scan",
                          "Projections": "region",
                          "Filters": "(status = 'paid')",
                          "Dynamic Filters": "(optional: (region IN ('West', 'North', 'South', 'East')) AND optional: region IN BF(region))",
                          "Estimated Cardinality": "5000"
                        },
                        "intermediate_rows": 8000,
                        "intermediate_size_bytes": 128000,
                        "row_groups_scanned": 1,
                        "rows_scanned": 10000,
                        "timing": 0.00012950100000000002,
                        "total_row_groups_to_scan": 1,
                        "type": "TABLE_SCAN"
                      },
                      {
                        "extra_info": {
                          "Table": "memory.main.promotions",
                          "Type": "Sequential Scan",
                          "Projections": "region",
                          "Estimated Cardinality": "8"
                        },
                        "intermediate_rows": 8,
                        "intermediate_size_bytes": 128,
                        "row_groups_scanned": 1,
                        "rows_scanned": 8,
                        "timing": 1.166e-06,
                        "total_row_groups_to_scan": 1,
                        "type": "TABLE_SCAN"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "optimizer": {
      "aggregate_function_rewriter": 1.583e-06,
      "aggregate_reuse": 8.75e-07,
      "build_side_probe_side": 2.167e-06,
      "column_lifetime": 1.583e-06,
      "common_aggregate": 3.75e-07,
      "common_subexpressions": 5e-07,
      "common_subplan": 9.833e-06,
      "cte_filter_pusher": 1.25e-07,
      "cte_inlining": 1.67e-07,
      "deliminator": 4.208e-06,
      "duplicate_groups": 6.66e-07,
      "empty_result_pullup": 1.67e-07,
      "expression_rewriter": 1.1417e-05,
      "filter_pullup": 2.5e-07,
      "filter_pushdown": 1.0459e-05,
      "grouping_sets": 2.5e-07,
      "in_clause": 2.5e-07,
      "join_elimination": 7.92e-07,
      "join_filter_pushdown": 6.166e-06,
      "join_order": 2.2709e-05,
      "late_materialization": 1.67e-07,
      "limit_pushdown": 1.25e-07,
      "outer_join_simplification": 1.084e-06,
      "partial_aggregate_pushdown": 5e-07,
      "partitioned_execution": 1.67e-07,
      "projection_placement": 4.17e-07,
      "projection_pullup": 5e-07,
      "redundant_order_keys": 4.58e-07,
      "regex_range": 1.25e-07,
      "reorder_filter": 2.08e-07,
      "row_group_pruner": 1.25e-07,
      "row_number_rewriter": 1.25e-07,
      "sampling_pushdown": 8.3e-08,
      "scalar_fn_pushdown": 1.25e-07,
      "statistics_propagation": 7.333e-06,
      "top_n": 1.25e-07,
      "top_n_window_elimination": 3.34e-07,
      "total_time": 0.000108792,
      "type_pushdown": 1.25e-07,
      "unnest_rewriter": 1.25e-07,
      "unused_columns": 7.208e-06,
      "window_self_join": 2.08e-07
    },
    "physical_planner": {
      "column_binding": 1.166e-06,
      "create_plan": 3.209e-06,
      "resolve_types": 1.67e-07,
      "total_time": 6e-06
    },
    "planner": {
      "binding_time": 3.525e-05,
      "total_time": 6.9833e-05
    },
    "query": {
      "cpu_time": 0.00019329200000000005,
      "sql": "EXPLAIN (ANALYZE, FORMAT JSON) SELECT count(*) AS qualifying_orders\nFROM orders o\nWHERE o.status = 'paid'\n  AND EXISTS (SELECT 1 FROM promotions p WHERE p.region = o.region);",
      "total_intermediate_rows": 16009,
      "total_intermediate_size_bytes": 256136,
      "total_row_groups_scanned": 2,
      "total_row_groups_to_scan": 2,
      "total_rows_scanned": 10008,
      "total_time": 0.000496
    },
    "system": {
      "blocked_thread_time": 0.000273,
      "peak_buffer_memory": 1568672,
      "peak_streaming_buffer_size": 0,
      "peak_temp_dir_size": 0,
      "total_memory_allocated": 786432
    }
  }
}
