first-query: [{"tenant_id": "north", "paid_orders": 4, "gross_cents": 22200}, {"tenant_id": "south", "paid_orders": 2, "gross_cents": 24900}]
null-counts: [{"rows": 8, "known_customers": 7, "distinct_customers": 4}]
empty-aggregate: [{"n": 0, "total": null}]
wrong-join: [{"gross_cents": 74600}]
fixed-join: [{"gross_cents": 47100, "line_cents": 47100}]
net-revenue: [{"tenant_id": "north", "gross_cents": 22200, "refund_cents": 11200, "net_cents": 11000}, {"tenant_id": "south", "gross_cents": 24900, "refund_cents": 3300, "net_cents": 21600}]
customers-without-orders: [{"customer_id": 5}]
wrong-not-in: []
window: [{"order_id": 1001, "running_cents": 12500}, {"order_id": 1002, "running_cents": 19700}, {"order_id": 1005, "running_cents": 22200}, {"order_id": 1007, "running_cents": 22200}]
decimal: [{"gross_dollars": 471.0}]
schema: [{"table_name": "orders", "column_name": "order_id", "data_type": "Int64"}, {"table_name": "orders", "column_name": "tenant_id", "data_type": "Utf8"}, {"table_name": "orders", "column_name": "customer_id", "data_type": "Int64"}, {"table_name": "orders", "column_name": "ordered_at", "data_type": "Timestamp(s)"}, {"table_name": "orders", "column_name": "status", "data_type": "Utf8"}, {"table_name": "orders", "column_name": "total_cents", "data_type": "Int64"}]
plan: [{"plan_type": "logical_plan", "plan": "Projection: orders.order_id\n  Filter: orders.status = Utf8(\"paid\") AND orders.total_cents > Int64(5000)\n    TableScan: orders projection=[order_id, status, total_cents], partial_filters=[orders.status = Utf8(\"paid\"), orders.total_cents > Int64(5000)]"}, {"plan_type": "physical_plan", "plan": "FilterExec: status@1 = paid AND total_cents@2 > 5000, projection=[order_id@0]\n  RepartitionExec: partitioning=RoundRobinBatch(16), input_partitions=1\n    BytesProcessedExec\n      DataSourceExec: file_groups={1 group: [[Users/lukim/dev/spice2/book/spice-ai-in-action/companion/data/orders.csv]]}, projection=[order_id, status, total_cents], file_type=csv, has_header=true\n"}]
analyze: [{"plan_type": "Plan with Metrics", "plan": "AggregateExec: mode=FinalPartitioned, gby=[tenant_id@0 as tenant_id], aggr=[sum(paid_orders.total_cents)], metrics=[output_rows=2, elapsed_compute=110.37\u00b5s, output_bytes=16.1 KB, output_batches=2, spill_count=0, spilled_bytes=0.0 B, spilled_rows=0, peak_mem_used=151.9 K, aggregate_arguments_time=264ns, aggregation_time=598ns, emitting_time=972ns, time_calculating_group_ids=598ns]\n  RepartitionExec: partitioning=Hash([tenant_id@0], 16), input_partitions=16, metrics=[output_rows=2, elapsed_compute=18.58\u00b5s, output_bytes=128.0 KB, output_batches=2, spill_count=0, spilled_bytes=0.0 B, spilled_rows=0, fetch_time=3.08ms, repartition_time=5.14\u00b5s, send_time=1.38\u00b5s]\n    AggregateExec: mode=Partial, gby=[tenant_id@0 as tenant_id], aggr=[sum(paid_orders.total_cents)], metrics=[output_rows=2, elapsed_compute=33.21\u00b5s, output_bytes=8.0 KB, output_batches=1, spill_count=0, spilled_bytes=0.0 B, spilled_rows=0, skipped_aggregation_rows=0, peak_mem_used=135.0 K, aggregate_arguments_time=1.22\u00b5s, aggregation_time=515ns, emitting_time=1.68\u00b5s, time_calculating_group_ids=1.76\u00b5s, reduction_factor=33.33% (2/6)]\n      FilterExec: status@1 = paid, projection=[tenant_id@0, total_cents@2], metrics=[output_rows=6, elapsed_compute=12.31\u00b5s, output_bytes=64.1 KB, output_batches=1, selectivity=75% (6/8)]\n        RepartitionExec: partitioning=RoundRobinBatch(16), input_partitions=1, metrics=[output_rows=8, elapsed_compute=1.51\u00b5s, output_bytes=66.1 KB, output_batches=1, spill_count=0, spilled_bytes=0.0 B, spilled_rows=0, fetch_time=124.67\u00b5s, repartition_time=1ns, send_time=2.93\u00b5s]\n          BytesProcessedExec, metrics=[output_rows=8, elapsed_compute=46.04\u00b5s, output_bytes=2.1 KB, output_batches=1, batches_split=0, file_open_errors=0, file_scan_errors=0, files_opened=1, files_processed=1, time_elapsed_opening=56.08\u00b5s, time_elapsed_processing=79.50\u00b5s, time_elapsed_scanning_total=56.67\u00b5s, time_elapsed_scanning_until_data=47.12\u00b5s]\n            DataSourceExec: file_groups={1 group: [[Users/lukim/dev/spice2/book/spice-ai-in-action/companion/data/orders.csv]]}, projection=[tenant_id, status, total_cents], file_type=csv, has_header=true, metrics=[output_rows=8, elapsed_compute=46.04\u00b5s, output_bytes=2.1 KB, output_batches=1, batches_split=0, file_open_errors=0, file_scan_errors=0, files_opened=1, files_processed=1, time_elapsed_opening=56.08\u00b5s, time_elapsed_processing=79.50\u00b5s, time_elapsed_scanning_total=56.67\u00b5s, time_elapsed_scanning_until_data=47.12\u00b5s]\n"}]
parameters: [{"gross_cents": 22200}]
