Functions | |
None | insert_batch (str batch_id) |
Filters and inserts a batch of records into ClickHouse. | |
main () | |
CLI entrypoint for inserting a batch into ClickHouse. | |
None pipeline.insert_to_clickhouse.insert_batch | ( | str | batch_id | ) |
Filters and inserts a batch of records into ClickHouse.
Loads data from the Parquet file at DB_PATH, filters by BatchID, and inserts the resulting records into the benchmark.performance
table.
batch_id | The BatchID to filter the dataset on. |
Exception | If ClickHouse insert fails. |
Definition at line 35 of file insert_to_clickhouse.py.
pipeline.insert_to_clickhouse.main | ( | ) |
CLI entrypoint for inserting a batch into ClickHouse.
Parses –batchid from command-line arguments and performs the insert.
Definition at line 69 of file insert_to_clickhouse.py.