Summarize web requests
Run this small SQL dataset in an authorized test streaming catalog and compare the query result with the expected values. Use PGWire for both insertion and recent-data reads. Insert once, allow for the commit cycle and reconcile any uncertain write before repeating it; identifiers alone do not provide deduplication.
Prerequisites
Section titled “Prerequisites”Complete the first workflow connection with permission to create tables in a test streaming catalog. Use an unused table name and run the INSERT once.
Web server logs
Section titled “Web server logs”CREATE TABLE main.access_logs ( event_id BIGINT, event_time TIMESTAMP, path VARCHAR, status_code INTEGER);
INSERT INTO main.access_logs VALUES (1, TIMESTAMP '2026-01-01 12:00:00', '/home', 200), (2, TIMESTAMP '2026-01-01 12:00:01', '/login', 401), (3, TIMESTAMP '2026-01-01 12:00:02', '/home', 200);
SELECT status_code, COUNT(*) AS requestsFROM main.access_logsGROUP BY status_codeORDER BY status_code;Expected result after the rows are visible: status 200 has two requests; 401 has one.
If the result differs
Section titled “If the result differs”Wait only by repeating SELECT within a bounded period. Check the selected catalog and any earlier inserts. After a lost connection, preserve the input and reconcile before retrying. See completion rules.