live wire
▸EKOS submits 70.15% on BIRD’s hidden test and 88.33% on Mini-Dev with different Claude models; both entries are pendingBIRD submission PR #270▸MotherDuck rolls out DuckDB 2.0 with async I/O and reports faster cold reads in TPC-H and TPC-DS testsMotherDuck▸ThoughtSpot Spotter starts rolling out answer explanations for token-based results, not AgentQLThoughtSpot▸Snowflake previews Z.ai GLM 5.4 in Cortex Inference, but not in Cortex AgentsSnowflake release notes▸Removing Vietnamese diacritics cut text-to-SQL accuracy by 10.3–37.0 points across four models in an author studyLe Trung et al., Vietnamese MultiSpider artifacts▸Avelis 1.7 adds AI-built dashboards and reruns pinned exploratory SQL under each viewer’s permissionsAvelis release notes▸Aurora MySQL previews cluster groups with one routing endpoint; each query still runs on one clusterAWS What's New▸Rewind-HNSW uses 86.9% less memory than full snapshots in authors’ 20-version testsShea et al., Rewind-HNSW §5.5▸Snowflake previews pausing downstream dynamic table refreshes when data quality checks failSnowflake release notes▸BigQuery previews optional GoogleSQL optimization suggestions in its interactive SQL translatorGoogle Cloud documentation▸Snowflake extends its Tableau and Power BI dashboard migration preview to Azure deploymentsSnowflake release notes▸Google Cloud makes it generally available to unpublish Iceberg data shares from SAP Business Data CloudGoogle Cloud — BigQuery and Lakehouse documentation▸AWS previews organization-wide cost questions in Ops Agent for FinOpsAWS What's New▸Looker updates require API login credentials in the request body, not the URLGoogle Cloud — Looker documentation▸EKOS submits 70.15% on BIRD’s hidden test and 88.33% on Mini-Dev with different Claude models; both entries are pendingBIRD submission PR #270▸MotherDuck rolls out DuckDB 2.0 with async I/O and reports faster cold reads in TPC-H and TPC-DS testsMotherDuck▸ThoughtSpot Spotter starts rolling out answer explanations for token-based results, not AgentQLThoughtSpot▸Snowflake previews Z.ai GLM 5.4 in Cortex Inference, but not in Cortex AgentsSnowflake release notes▸Removing Vietnamese diacritics cut text-to-SQL accuracy by 10.3–37.0 points across four models in an author studyLe Trung et al., Vietnamese MultiSpider artifacts▸Avelis 1.7 adds AI-built dashboards and reruns pinned exploratory SQL under each viewer’s permissionsAvelis release notes▸Aurora MySQL previews cluster groups with one routing endpoint; each query still runs on one clusterAWS What's New▸Rewind-HNSW uses 86.9% less memory than full snapshots in authors’ 20-version testsShea et al., Rewind-HNSW §5.5▸Snowflake previews pausing downstream dynamic table refreshes when data quality checks failSnowflake release notes▸BigQuery previews optional GoogleSQL optimization suggestions in its interactive SQL translatorGoogle Cloud documentation▸Snowflake extends its Tableau and Power BI dashboard migration preview to Azure deploymentsSnowflake release notes▸Google Cloud makes it generally available to unpublish Iceberg data shares from SAP Business Data CloudGoogle Cloud — BigQuery and Lakehouse documentation▸AWS previews organization-wide cost questions in Ops Agent for FinOpsAWS What's New▸Looker updates require API login credentials in the request body, not the URLGoogle Cloud — Looker documentation
nl2sql.ai
guidePRACTITIONER GUIDE

ClickHouse can log two events for one SQL agent query

Use application dispatches for attempts per task. Match them to ClickHouse terminal events to see how much of that work the server log captures.

By The News Desk· Nov 29, 2026the quick take — two AI hosts go live when you do

If you’re sizing a warehouse for a SQL agent, don’t divide raw ClickHouse query-log rows by the number of user questions. A single successful query produces a start and a finish event, and distributed work can add child-query records. But counting only finishes also gives the wrong number: it drops failures, and even a count of all terminal events can miss calls the application tried to make. ClickHouse’s system.query_log reference documents the server-side events; use an application ledger for the attempt count.

Count dispatches in the application, then reconcile with the server

In a pilot, assign each user task an ID. Record one attempt when the application hands a SQL call to its database client, including each retry; use a fresh query ID per attempt where the client supports it. Divide those dispatches by all user tasks in the pilot, including tasks that failed or made no SQL calls. If the driver retries beneath your instrumentation, either capture those retries too or label the measure as application-level dispatches rather than all network attempts.

Match the ledger to system.query_log by query_id, keeping is_initial_query = 1 and the terminal types QueryFinish, ExceptionWhileProcessing, and ExceptionBeforeStart. The initial-query filter removes child work but does not identify agent traffic by itself; the reference notes that server-internal work can also be marked initial. Count matched attempt IDs, not log rows. Report the share of application attempts with a terminal match separately from attempts per task.

For example, suppose one task dispatches four calls: a success, a query that fails during processing, a retry that succeeds, and a call that times out at the client with no matching terminal row after reconciliation. The first three produce six parent events and three matched terminal outcomes under unfiltered logging. The fourth still counts in the application ledger: four attempts per task, three of four with a terminal match. Mark the fourth as a client timeout with no observed terminal outcome, not a confirmed database failure or zero server work. A client-side connection failure with no match also stays in the ledger if it occurred after dispatch to the driver. If a timed-out attempt later acquires a terminal match, update the coverage count, not the dispatch count.

Check what the log could have missed

Check the effective ClickHouse query-logging settings for the pilot: log_queries = 1, log_queries_probability = 1 for no sampling, log_queries_min_query_duration_ms = 0 for no duration cutoff, and log_queries_min_type = 'QUERY_START' if you want all event types. A nonzero duration threshold can omit fast queries and excludes before-start exceptions; a higher minimum event type can suppress otherwise eligible events. Allow time for log flushing and collect from all relevant nodes; ClickHouse Cloud documents clusterAllReplicas because the log is local to each node.

A November 24 ClickHouse engineering post illustrates how agents can create bursts even when data refreshes nightly. Its workload figures are scenarios, not measured deployment results. For your own sizing pilot, use application dispatches to describe demand, matched server records to measure observed warehouse work, and application wall-clock time to measure what the user waited. These answer three different questions.

Filed by The News Desk. Corrections: desk@nl2sql.ai · Our standards →

comments · 0

    Comments are moderated before they appear. Your email is used once to confirm it is you — never shown, never sold. Corrections and questions get an answer from the desk when we have one.