mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 08:09:24 +00:00
## Summary Adds Q1003–Q1072 (70 queries) to `tests/test-data/query-agent/queries/full_text_search.json`. All exercise the `match_all` + FST projection rewrite path fixed in #13808, under diverse plan shapes. Structural patterns mirror real production customer queries (fan-out UNION ALL, multi-CTE, CSE-triggering scalar wrappers on the FTS field) but use **only test-fixture fields and values** — no customer identifiers. ## Shape coverage | Family | Range | Count | What it exercises | |---|---|---|---| | A. Subquery + `match_all` + GROUP BY | Q1003–Q1012 | 10 | Simple inline-view aggregations | | B. CTE with fan-out UNION ALL, `match_all` per branch | Q1013–Q1027 | 15 | Dominant customer pattern (multi-branch UNION + per-branch FTS + LIKE/regex + outer aggregate) | | C. CTE + scalar wrapper on `log` (trim/upper/split_part/regexp_replace/substring/concat/length) + `match_all` | Q1028–Q1037 | 10 | **CSE-trigger sentinels** — the wrappers cause DataFusion CSE to insert the intermediate `ProjectionExec` that #13808 fixes | | D. Deep multi-CTE + `match_all` + regex/LIKE/CASE combos | Q1038–Q1047 | 10 | Deep plan trees, many projection candidates | | E. Edge cases (DISTINCT, HAVING, CASE, IN-list) | Q1048–Q1052 | 5 | Corner combinations | | F. `match_all` inside JOINs (self-join, LEFT JOIN, cross-stream) | Q1053–Q1058 | 6 | JOIN builders inject their own projections | | G. `match_all` + window functions (ROW_NUMBER, RANK, DENSE_RANK, SUM/COUNT OVER) | Q1059–Q1063 | 5 | Window planning inserts projections above filter | | H. Negated `match_all` (NOT, AND NOT, UNION of pos/neg) | Q1064–Q1066 | 3 | Rewriter's negation code path | | I. Multiple `match_all` in same query (AND, OR, nested) | Q1067–Q1069 | 3 | Two FST fields injected simultaneously | | J. `histogram` + `match_all` time-series | Q1070–Q1072 | 3 | Common customer pattern; histogram optimizer + FST rewriter together | ## Verification - All 70 queries have DuckDB oracle results auto-populated via `compute_counts.py`. - Two initial cross-stream JOIN queries (Q1055, Q1058) were rewritten to disambiguate the FTS field between streams — now they scope `match_all` inside a per-stream CTE before joining. - Audit for customer-token leakage (pharma, tomcat, o2_test, usgm, storenumber, tagname, cash, credit_card, etc.) returns **zero hits** across Q1003–Q1072. ## Implementation notes - Added generator script [tests/test-data/query-agent/gen_q1003_q1052.py](tests/test-data/query-agent/gen_q1003_q1052.py) alongside existing `gen_q201_q400.py` / `gen_q511_q556.py` convention. Deterministic regeneration. - Wide JSON churn across the other 12 category files is `compute_counts.py` re-baselining expected results against a fresh `BASE_TS` (`base_ts_override.json` is untracked); tuple-order shuffles are harmless under `results_mode: rowsort`. - Coverage is most meaningful under the `remove_filter_with_index_false` CI leg (added in #13810), where `match_all` actually reaches `RewriteMatchPhysical`. Under the default flag (`true`), the index optimizer removes `match_all` before the rewriter runs, masking the bug path. ## Test plan - [ ] `api_query_agent / single_node_opt_true` — green - [ ] `api_query_agent / single_node_opt_false` — green - [ ] `api_query_agent / remove_filter_with_index_false` — green (this is the leg that actually validates the rewriter under all 70 shapes) - [ ] Q1003–Q1072 all pass on both memtable and parquet phases 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
8699 lines
231 KiB
JSON
8699 lines
231 KiB
JSON
{
|
|
"queries": [
|
|
{
|
|
"id": "Q074",
|
|
"sql": "SELECT _timestamp, log, facility_zone FROM \"{stream}\" WHERE match_all('warehouse') ORDER BY _timestamp DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"facility_zone"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q076 warehouse event record 2",
|
|
"ZONE-1"
|
|
],
|
|
[
|
|
"Q076 warehouse event record 1",
|
|
"ZONE-4"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 4",
|
|
"ZONE-2"
|
|
],
|
|
[
|
|
"Q076 warehouse event record 0 ACK batch batchIdList:Q076-0",
|
|
"ZONE-3"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 3 ACK batch batchIdList:Q075-3",
|
|
"ZONE-1"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 2",
|
|
"ZONE-4"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 1",
|
|
"ZONE-3"
|
|
],
|
|
[
|
|
"Q074 warehouse event record 4",
|
|
"ZONE-1"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 0 ACK batch batchIdList:Q075-0",
|
|
"ZONE-2"
|
|
],
|
|
[
|
|
"Q074 warehouse event record 3 ACK batch batchIdList:Q074-3",
|
|
"ZONE-4"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 4379000000,
|
|
"end_offset": 4543000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q075",
|
|
"sql": "SELECT _timestamp, log, pallet_id FROM \"{stream}\" WHERE match_all('event') ORDER BY _timestamp ASC",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"pallet_id"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q075 warehouse event record 0 ACK batch batchIdList:Q075-0",
|
|
"PL-008"
|
|
],
|
|
[
|
|
"Q074 warehouse event record 4",
|
|
"PL-007"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 1",
|
|
"PL-001"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 2",
|
|
"PL-002"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 3 ACK batch batchIdList:Q075-3",
|
|
"PL-003"
|
|
],
|
|
[
|
|
"Q076 warehouse event record 0 ACK batch batchIdList:Q076-0",
|
|
"PL-005"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 4",
|
|
"PL-004"
|
|
],
|
|
[
|
|
"Q076 warehouse event record 1",
|
|
"PL-006"
|
|
],
|
|
[
|
|
"Q076 warehouse event record 2",
|
|
"PL-007"
|
|
],
|
|
[
|
|
"Q076 warehouse event record 3 ACK batch batchIdList:Q076-3",
|
|
"PL-008"
|
|
],
|
|
[
|
|
"Q077 warehouse event record 0 ACK batch batchIdList:Q077-0",
|
|
"PL-002"
|
|
],
|
|
[
|
|
"Q076 warehouse event record 4",
|
|
"PL-001"
|
|
],
|
|
[
|
|
"Q077 warehouse event record 1",
|
|
"PL-003"
|
|
],
|
|
[
|
|
"Q077 warehouse event record 2",
|
|
"PL-004"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 4439000000,
|
|
"end_offset": 4603000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q076",
|
|
"sql": "SELECT facility_zone, COUNT(*) AS cnt FROM \"{stream}\" WHERE match_all('record') AND throughput_rate > 200.0 GROUP BY facility_zone ORDER BY cnt DESC",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-3",
|
|
"4"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"3"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"3"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"2"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 4499000000,
|
|
"end_offset": 4663000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q077",
|
|
"sql": "SELECT histogram(_timestamp) AS _time, COUNT(*) AS match_count FROM \"{stream}\" WHERE match_all('warehouse') GROUP BY _time ORDER BY _time ASC",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"row_count": 17,
|
|
"columns": [
|
|
"_time",
|
|
"match_count"
|
|
],
|
|
"note": "match_all with histogram aggregation",
|
|
"skip_row_count": true,
|
|
"assertions": [
|
|
{
|
|
"type": "value_range",
|
|
"column": "match_count",
|
|
"min": 0
|
|
}
|
|
]
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 4559000000,
|
|
"end_offset": 4723000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q078",
|
|
"sql": "SELECT _timestamp, pallet_id, facility_zone, sorter_model, throughput_rate, load_factor FROM \"{stream}\" WHERE match_all('warehouse') AND throughput_rate > 400.0 AND facility_zone IN ('ZONE-1', 'ZONE-2') ORDER BY throughput_rate DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"pallet_id",
|
|
"facility_zone",
|
|
"sorter_model",
|
|
"throughput_rate",
|
|
"load_factor"
|
|
],
|
|
"results": [
|
|
[
|
|
"PL-003",
|
|
"ZONE-1",
|
|
"SORT-M3",
|
|
"900.0",
|
|
"94.6"
|
|
],
|
|
[
|
|
"PL-007",
|
|
"ZONE-1",
|
|
"SORT-M3",
|
|
"840.0",
|
|
"33.0"
|
|
],
|
|
[
|
|
"PL-003",
|
|
"ZONE-1",
|
|
"SORT-M3",
|
|
"610.0",
|
|
"99.0"
|
|
],
|
|
[
|
|
"PL-008",
|
|
"ZONE-2",
|
|
"SORT-Z9",
|
|
"480.0",
|
|
"21.4"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 4619000000,
|
|
"end_offset": 4783000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q079",
|
|
"sql": "SELECT facility_zone, COUNT(*) AS match_cnt, ROUND(AVG(throughput_rate), 2) AS avg_tput, ROUND(AVG(load_factor), 2) AS avg_load FROM \"{stream}\" WHERE match_all('event') AND operation_mode != 'manual' GROUP BY facility_zone HAVING COUNT(*) >= 1 ORDER BY match_cnt DESC",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"match_cnt",
|
|
"avg_tput",
|
|
"avg_load"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"3",
|
|
"451.67",
|
|
"26.4"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"2",
|
|
"457.5",
|
|
"50.3"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"2",
|
|
"580.0",
|
|
"50.45"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"1",
|
|
"320.0",
|
|
"67.9"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 4679000000,
|
|
"end_offset": 4843000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q080",
|
|
"sql": "SELECT histogram(_timestamp, '1 minute') AS time_block, COUNT(*) FILTER (WHERE match_all('warehouse')) AS warehouse_hits, COUNT(*) AS total_events, ROUND(CAST(COUNT(*) FILTER (WHERE match_all('warehouse')) AS FLOAT) / NULLIF(COUNT(*), 0) * 100.0, 2) AS hit_rate_pct FROM \"{stream}\" GROUP BY time_block ORDER BY time_block ASC",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"time_block",
|
|
"warehouse_hits",
|
|
"total_events",
|
|
"hit_rate_pct"
|
|
],
|
|
"results": [
|
|
[
|
|
"2026-08-14T06:24:00",
|
|
"5",
|
|
"5",
|
|
"100.0"
|
|
],
|
|
[
|
|
"2026-08-14T06:25:00",
|
|
"5",
|
|
"5",
|
|
"100.0"
|
|
],
|
|
[
|
|
"2026-08-14T06:26:00",
|
|
"4",
|
|
"4",
|
|
"100.0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 4739000000,
|
|
"end_offset": 4903000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q081",
|
|
"sql": "SELECT _timestamp, log, pallet_id, facility_zone, sorter_model, ROW_NUMBER() OVER (PARTITION BY facility_zone ORDER BY _timestamp DESC) AS recency_rank FROM \"{stream}\" WHERE match_all('record') ORDER BY facility_zone ASC, recency_rank ASC",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"pallet_id",
|
|
"facility_zone",
|
|
"sorter_model",
|
|
"recency_rank"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q082 warehouse event record 4",
|
|
"PL-007",
|
|
"ZONE-1",
|
|
"SORT-M3",
|
|
"1"
|
|
],
|
|
[
|
|
"Q082 warehouse event record 0 ACK batch batchIdList:Q082-0",
|
|
"PL-003",
|
|
"ZONE-1",
|
|
"SORT-M3",
|
|
"2"
|
|
],
|
|
[
|
|
"Q081 warehouse event record 1",
|
|
"PL-007",
|
|
"ZONE-1",
|
|
"SORT-M3",
|
|
"3"
|
|
],
|
|
[
|
|
"Q083 warehouse event record 0 ACK batch batchIdList:Q083-0",
|
|
"PL-008",
|
|
"ZONE-2",
|
|
"SORT-Z9",
|
|
"1"
|
|
],
|
|
[
|
|
"Q082 warehouse event record 1",
|
|
"PL-004",
|
|
"ZONE-2",
|
|
"SORT-Q5",
|
|
"2"
|
|
],
|
|
[
|
|
"Q081 warehouse event record 2",
|
|
"PL-008",
|
|
"ZONE-2",
|
|
"SORT-Z9",
|
|
"3"
|
|
],
|
|
[
|
|
"Q083 warehouse event record 1",
|
|
"PL-001",
|
|
"ZONE-3",
|
|
"SORT-X1",
|
|
"1"
|
|
],
|
|
[
|
|
"Q082 warehouse event record 2",
|
|
"PL-005",
|
|
"ZONE-3",
|
|
"SORT-X1",
|
|
"2"
|
|
],
|
|
[
|
|
"Q081 warehouse event record 3 ACK batch batchIdList:Q081-3",
|
|
"PL-001",
|
|
"ZONE-3",
|
|
"SORT-X1",
|
|
"3"
|
|
],
|
|
[
|
|
"Q080 warehouse event record 4",
|
|
"PL-005",
|
|
"ZONE-3",
|
|
"SORT-X1",
|
|
"4"
|
|
],
|
|
[
|
|
"Q083 warehouse event record 2",
|
|
"PL-002",
|
|
"ZONE-4",
|
|
"SORT-A7",
|
|
"1"
|
|
],
|
|
[
|
|
"Q082 warehouse event record 3 ACK batch batchIdList:Q082-3",
|
|
"PL-006",
|
|
"ZONE-4",
|
|
"SORT-A7",
|
|
"2"
|
|
],
|
|
[
|
|
"Q081 warehouse event record 4",
|
|
"PL-002",
|
|
"ZONE-4",
|
|
"SORT-A7",
|
|
"3"
|
|
],
|
|
[
|
|
"Q081 warehouse event record 0 ACK batch batchIdList:Q081-0",
|
|
"PL-006",
|
|
"ZONE-4",
|
|
"SORT-A7",
|
|
"4"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 4799000000,
|
|
"end_offset": 4963000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q082",
|
|
"sql": "SELECT 'primary_hits' AS source, _timestamp, pallet_id, facility_zone, throughput_rate FROM \"{stream}\" WHERE match_all('warehouse') AND throughput_rate >= 500.0 UNION ALL SELECT 'secondary_hits' AS source, _timestamp, pallet_id, facility_zone, throughput_rate FROM \"{stream}\" WHERE match_all('event') AND throughput_rate < 500.0 ORDER BY source ASC, throughput_rate DESC LIMIT 15",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"source",
|
|
"pallet_id",
|
|
"facility_zone",
|
|
"throughput_rate"
|
|
],
|
|
"results": [
|
|
[
|
|
"primary_hits",
|
|
"PL-005",
|
|
"ZONE-3",
|
|
"900.0"
|
|
],
|
|
[
|
|
"primary_hits",
|
|
"PL-007",
|
|
"ZONE-1",
|
|
"840.0"
|
|
],
|
|
[
|
|
"primary_hits",
|
|
"PL-004",
|
|
"ZONE-2",
|
|
"725.0"
|
|
],
|
|
[
|
|
"primary_hits",
|
|
"PL-006",
|
|
"ZONE-4",
|
|
"725.0"
|
|
],
|
|
[
|
|
"primary_hits",
|
|
"PL-005",
|
|
"ZONE-3",
|
|
"610.0"
|
|
],
|
|
[
|
|
"primary_hits",
|
|
"PL-003",
|
|
"ZONE-1",
|
|
"610.0"
|
|
],
|
|
[
|
|
"primary_hits",
|
|
"PL-003",
|
|
"ZONE-1",
|
|
"555.0"
|
|
],
|
|
[
|
|
"secondary_hits",
|
|
"PL-002",
|
|
"ZONE-4",
|
|
"480.0"
|
|
],
|
|
[
|
|
"secondary_hits",
|
|
"PL-007",
|
|
"ZONE-1",
|
|
"320.0"
|
|
],
|
|
[
|
|
"secondary_hits",
|
|
"PL-001",
|
|
"ZONE-3",
|
|
"320.0"
|
|
],
|
|
[
|
|
"secondary_hits",
|
|
"PL-004",
|
|
"ZONE-2",
|
|
"190.0"
|
|
],
|
|
[
|
|
"secondary_hits",
|
|
"PL-002",
|
|
"ZONE-4",
|
|
"190.0"
|
|
],
|
|
[
|
|
"secondary_hits",
|
|
"PL-006",
|
|
"ZONE-4",
|
|
"150.0"
|
|
],
|
|
[
|
|
"secondary_hits",
|
|
"PL-008",
|
|
"ZONE-2",
|
|
"150.0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 4859000000,
|
|
"end_offset": 5023000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q163",
|
|
"sql": "SELECT approx_distinct(source_ip) AS ipc, COUNT(*) AS count, attack_name FROM \"{stream}\" WHERE filter_result = 'block' AND issue_type != 'N/A' AND attack_name NOT LIKE 'Malicious%' AND geo_country IN ('US', 'BR', 'DE') AND NOT regexp_like(http_request, '127\\.0\\.0\\.1|192\\.168\\.|localhost|test|sleep', 'i') AND NOT regexp_like(user_agent_str, 'nessus|sleep|test|python|script', 'i') AND re_not_match(uri_path, 'favicon|etc|git|blocked|admin|config|bash|login') AND re_not_match(user_agent_str, '127.0.0.1|nessus|sleep|test') GROUP BY attack_name HAVING COUNT(*) >= 1 ORDER BY ipc DESC LIMIT 50",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 9719000000,
|
|
"end_offset": 9883000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"ipc",
|
|
"count",
|
|
"attack_name"
|
|
],
|
|
"results": [
|
|
[
|
|
"1",
|
|
"1",
|
|
"SQL Injection (Param)"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q164",
|
|
"sql": "SELECT page_slug, COUNT(_timestamp) as cnt, order_ref as \"key\", (CASE WHEN auth_result = filter_result THEN 'new' ELSE 'old' END) as \"session\" FROM \"{stream}\" WHERE (match_all('warehouse') AND page_slug = 'cartPage') AND info_tag IS NOT NULL AND passthrough_flag = 'false' AND status_code = '200' AND graphql_operation = 'verifyPayment' AND (user_agent_str NOT LIKE '%bot%' AND user_agent_str NOT LIKE '%test%') GROUP BY \"key\", page_slug, \"session\" HAVING (cnt >= 1 AND \"session\" = 'old') ORDER BY cnt DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 9779000000,
|
|
"end_offset": 9943000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"page_slug",
|
|
"cnt",
|
|
"key",
|
|
"session"
|
|
],
|
|
"results": [],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q172",
|
|
"sql": "SELECT page_slug, COUNT(_timestamp) as cnt, order_ref as \"key\",\n (CASE WHEN auth_result = filter_result THEN 'new' ELSE 'old' END) as \"session\"\nFROM \"{stream}\"\nWHERE (match_all('warehouse') AND page_slug = 'cartPage')\n AND bot_flag IS NULL\n AND passthrough_flag = 'false'\n AND (info_tag IS NULL OR info_tag NOT LIKE '%NonexistentPattern%')\n AND ((order_ref IS NULL OR order_ref != 'ORD-999'))\n AND (user_agent_str IS NULL OR user_agent_str != 'curl/7.88.1')\n AND status_code = '200'\n AND graphql_operation = 'verifyPayment'\n AND (user_agent_str NOT LIKE '%bot%' AND user_agent_str NOT LIKE '%test%' AND user_agent_str NOT LIKE '%curl%')\nGROUP BY \"key\", page_slug, \"session\"\nHAVING (cnt >= 1 AND \"session\" = 'old')\nORDER BY cnt DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 10259000000,
|
|
"end_offset": 10423000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"page_slug",
|
|
"cnt",
|
|
"key",
|
|
"session"
|
|
],
|
|
"results": [],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q190",
|
|
"sql": "SELECT _timestamp, log, facility_zone, operation_mode, api_name\nFROM \"{stream}\"\nWHERE match_all('warehouse')\n AND str_match_ignore_case(log, 'batch')\n AND facility_zone IN ('ZONE-1', 'ZONE-2')\nORDER BY _timestamp DESC\nLIMIT 15",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 11339000000,
|
|
"end_offset": 11503000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"facility_zone",
|
|
"operation_mode",
|
|
"api_name"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q191 warehouse event record 3 ACK batch batchIdList:Q191-3",
|
|
"ZONE-1",
|
|
"auto",
|
|
"MergeBatch"
|
|
],
|
|
[
|
|
"Q191 warehouse event record 0 ACK batch batchIdList:Q191-0",
|
|
"ZONE-2",
|
|
"auto",
|
|
"DeleteRecord"
|
|
],
|
|
[
|
|
"Q190 warehouse event record 0 ACK batch batchIdList:Q190-0",
|
|
"ZONE-1",
|
|
"auto",
|
|
"SyncZone"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q191",
|
|
"sql": "SELECT facility_zone,\n COUNT(*) AS cnt,\n AVG(throughput_rate) AS avg_throughput,\n MAX(load_factor) AS max_load\nFROM \"{stream}\"\nWHERE match_all('warehouse')\n AND str_match_ignore_case(log, 'event')\n AND throughput_rate >= 100.0\nGROUP BY facility_zone\nHAVING COUNT(*) >= 1\n AND AVG(throughput_rate) > 100.0\nORDER BY cnt DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 11399000000,
|
|
"end_offset": 11563000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"cnt",
|
|
"avg_throughput",
|
|
"max_load"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-2",
|
|
"4",
|
|
"386.25",
|
|
"88.1"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"4",
|
|
"653.75",
|
|
"94.6"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"3",
|
|
"210.0",
|
|
"88.1"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"3",
|
|
"571.6666666666666",
|
|
"72.8"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q306",
|
|
"sql": "SELECT COUNT(*) AS cnt, response_code AS status FROM \"{stream}\" WHERE uri_path LIKE '%/api/%' GROUP BY status ORDER BY status ASC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 18299000000,
|
|
"end_offset": 18373000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"cnt",
|
|
"status"
|
|
],
|
|
"results": [
|
|
[
|
|
"1",
|
|
"201"
|
|
],
|
|
[
|
|
"1",
|
|
"500"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q307",
|
|
"sql": "SELECT _timestamp, exception_message, error_code, action_category FROM \"{stream}\" WHERE exception_message LIKE '%Exception%' OR upstream_error_code LIKE '%UP-E00%' OR error_code LIKE '%E00%' OR event_detail LIKE '%fail%' OR log_message LIKE '%ERROR%' ORDER BY _timestamp DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 18359000000,
|
|
"end_offset": 18433000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"exception_message",
|
|
"error_code",
|
|
"action_category"
|
|
],
|
|
"results": [
|
|
[
|
|
"NetworkException: connection to batch sync failed",
|
|
"E006",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"ConfigurationException: missing facility_zone ZONE-3 override",
|
|
"E005",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"ConfigurationException: missing facility_zone ZONE-3 override",
|
|
"E005",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"SecurityException: unauthorized access to control_center CC-ALPHA",
|
|
"E004",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"ResourceExhaustedException: sorter_model SORT-M3 queue full",
|
|
"E003",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"ResourceExhaustedException: sorter_model SORT-M3 queue full",
|
|
"E003",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"DataIntegrityException: pallet_id PL-002 checksum mismatch",
|
|
"E002",
|
|
"navigation"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q308",
|
|
"sql": "SELECT * FROM \"{stream}\" WHERE exception_message LIKE '%Exception%' AND exception_message NOT LIKE '%Timeout%' AND exception_message NOT LIKE '%NullPointer%'",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 18419000000,
|
|
"end_offset": 18493000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"stream",
|
|
"pallet_id",
|
|
"load_factor",
|
|
"charge_remaining",
|
|
"throughput_rate",
|
|
"sorter_model",
|
|
"conveyor_lane",
|
|
"facility_zone",
|
|
"control_center",
|
|
"item_count",
|
|
"defect_limit",
|
|
"runtime_hours",
|
|
"operation_mode",
|
|
"package_size",
|
|
"scan_attempts",
|
|
"conveyor_segment",
|
|
"cell_temp",
|
|
"build_signature",
|
|
"event_detail",
|
|
"ack_detail",
|
|
"log_message",
|
|
"error_code",
|
|
"service_owner",
|
|
"upstream_error_code",
|
|
"exception_message",
|
|
"request_payload",
|
|
"phase_data",
|
|
"db_info",
|
|
"api_name",
|
|
"node_ip",
|
|
"source_ip",
|
|
"tag_a",
|
|
"tag_b",
|
|
"query_source",
|
|
"region_code",
|
|
"client_agent",
|
|
"operation_name",
|
|
"site_name",
|
|
"endpoint_path",
|
|
"http_method",
|
|
"response_code",
|
|
"scan_category",
|
|
"auth_result",
|
|
"task_id",
|
|
"entity_id",
|
|
"alert_tags",
|
|
"issue_type",
|
|
"filter_result",
|
|
"guard_mode",
|
|
"record_type",
|
|
"resource_path",
|
|
"latency_ms",
|
|
"org_name",
|
|
"threat_flag",
|
|
"build_version",
|
|
"bin_code",
|
|
"payload_size",
|
|
"component_name",
|
|
"route_key",
|
|
"auth_token",
|
|
"app_label",
|
|
"variant_tag",
|
|
"cookie_id",
|
|
"status_code",
|
|
"lcp_micros",
|
|
"inp_micros",
|
|
"cls_score",
|
|
"device_type",
|
|
"page_slug",
|
|
"action_category",
|
|
"action_subcategory",
|
|
"page_url",
|
|
"render_scope",
|
|
"os_platform",
|
|
"attack_name",
|
|
"http_request",
|
|
"user_agent_str",
|
|
"uri_path",
|
|
"geo_org",
|
|
"geo_country",
|
|
"geo_user_type",
|
|
"risk_rules_list",
|
|
"visitor_session_id",
|
|
"bot_flag",
|
|
"passthrough_flag",
|
|
"order_ref",
|
|
"info_tag",
|
|
"graphql_operation",
|
|
"datacenter"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q307 warehouse event record 4",
|
|
"stderr",
|
|
"PL-004",
|
|
"55.2",
|
|
"66.6",
|
|
"290.0",
|
|
"SORT-Q5",
|
|
"LANE-C",
|
|
"ZONE-2",
|
|
"CC-ALPHA",
|
|
"120",
|
|
"2.8",
|
|
"48",
|
|
"auto",
|
|
"1200",
|
|
"1",
|
|
"4",
|
|
"18.5",
|
|
"BS-2025-D4",
|
|
"segment 17 weight threshold exceeded",
|
|
"ACK batch batchIdList:BT-002-2026 acknowledged",
|
|
"ERROR: scan_attempts exhausted for pallet_id=PL-007",
|
|
"E006",
|
|
"@warehouse-Linux-sort-v3",
|
|
"None",
|
|
"NetworkException: connection to batch sync failed",
|
|
"{\"message\":{\"endpoint\":\"scanPallet\",\"status\":\"ok\"}}",
|
|
"[\"{\\\"name\\\":\\\"init\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"process\\\",\\\"startTime\\\":\\\"150\\\"}\"]",
|
|
"[\"cid-vwx234\",\"status-ok\"]",
|
|
"RerouteTrack",
|
|
"10.12.0.102",
|
|
"192.168.2.23",
|
|
"dev",
|
|
"medium",
|
|
"cli",
|
|
"SA-EAST",
|
|
"Java/17.0.8 (OpenJDK; sorter-agent)",
|
|
"SearchItems",
|
|
"site-sin-08",
|
|
"None",
|
|
"POST",
|
|
"403",
|
|
"internal",
|
|
"denied",
|
|
"task-b8c9d0",
|
|
"ent-007-wh",
|
|
"latency",
|
|
"timeout",
|
|
"allow",
|
|
"passive",
|
|
"sort",
|
|
"None",
|
|
"567",
|
|
"warehouse-north",
|
|
"None",
|
|
"v3.1.0",
|
|
"BIN-D4",
|
|
"512",
|
|
"lane-monitor",
|
|
"rk-warehouse-005",
|
|
"tok-wh-ghi789jkl012",
|
|
"warehouse-merge",
|
|
"None",
|
|
"ctl_xyz789",
|
|
"200",
|
|
"2800000",
|
|
"95000",
|
|
"0.05",
|
|
"Computer",
|
|
"checkoutPage",
|
|
"performanceMetric",
|
|
"vitalsLcp",
|
|
"None",
|
|
"SSR",
|
|
"Android 14",
|
|
"XSS Stored (Body)",
|
|
"GET /favicon.ico",
|
|
"Mozilla/5.0 Chrome/120",
|
|
"/api/v1/users",
|
|
"CloudServe GmbH",
|
|
"DE",
|
|
"hosting",
|
|
"[\"rate_limit_exceeded\"]",
|
|
"sess_002",
|
|
"None",
|
|
"false",
|
|
"ORD-003",
|
|
"None",
|
|
"placeOrder",
|
|
"dc-west"
|
|
],
|
|
[
|
|
"Q308 warehouse event record 0 ACK batch batchIdList:Q308-0",
|
|
"stdout",
|
|
"PL-005",
|
|
"33.0",
|
|
"33.3",
|
|
"840.0",
|
|
"SORT-X1",
|
|
"LANE-D",
|
|
"ZONE-3",
|
|
"CC-BETA",
|
|
"50",
|
|
"1.2",
|
|
"720",
|
|
"manual",
|
|
"850",
|
|
"4",
|
|
"3",
|
|
"40.0",
|
|
"BS-2026-C3",
|
|
"batch XYZ789 timed out at checkpoint 3",
|
|
"ACK batch batchIdList:BT-001-2026 received",
|
|
"WARN: cell_temp=38.2 exceeding limit at sorter_model=SORT-Z9",
|
|
"E005",
|
|
"@warehouse-iOS-sort-v2",
|
|
"None",
|
|
"ConfigurationException: missing facility_zone ZONE-3 override",
|
|
"{\"message\":{\"endpoint\":\"deleteRecord\",\"status\":\"failed\"}}",
|
|
"[\"{\\\"name\\\":\\\"start\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"pause\\\",\\\"startTime\\\":\\\"160\\\"}\", \"{\\\"name\\\":\\\"resume\\\",\\\"startTime\\\":\\\"320\\\"}\", \"{\\\"name\\\":\\\"stop\\\",\\\"startTime\\\":\\\"480\\\"}\"]",
|
|
"[\"cid-stu901\",\"status-warning\"]",
|
|
"ScanPallet",
|
|
"10.12.0.101",
|
|
"192.168.2.22",
|
|
"staging",
|
|
"high",
|
|
"dashboard",
|
|
"AP-EAST",
|
|
"Python-urllib/3.11 warehouse-client",
|
|
"SyncZone",
|
|
"site-dub-07",
|
|
"None",
|
|
"GET",
|
|
"401",
|
|
"outbound",
|
|
"fail",
|
|
"task-y5z6a7",
|
|
"ent-006-wh",
|
|
"capacity",
|
|
"overflow",
|
|
"block",
|
|
"active",
|
|
"scan",
|
|
"None",
|
|
"89",
|
|
"warehouse-west",
|
|
"None",
|
|
"v3.0.1",
|
|
"BIN-C3",
|
|
"128",
|
|
"pallet-mapper",
|
|
"rk-warehouse-004",
|
|
"tok-wh-abc123def456",
|
|
"warehouse-track",
|
|
"None",
|
|
"sess_def456",
|
|
"403",
|
|
"1500000",
|
|
"200000",
|
|
"0.06",
|
|
"Tablet",
|
|
"itemPage",
|
|
"performanceMetric",
|
|
"pageView",
|
|
"None",
|
|
"CSR",
|
|
"Mac OS X (iPhone)",
|
|
"Command Injection",
|
|
"GET /search?q=test",
|
|
"Mozilla/5.0 Edge/120",
|
|
"/swag/graphql",
|
|
"FastHost Ltd",
|
|
"US",
|
|
"business",
|
|
"[\"scraping_pattern\",\"high_freq\"]",
|
|
"sess_001",
|
|
"None",
|
|
"false",
|
|
"ORD-001",
|
|
"None",
|
|
"getInventory",
|
|
"dc-central"
|
|
],
|
|
[
|
|
"Q308 warehouse event record 1",
|
|
"stdout",
|
|
"PL-006",
|
|
"55.2",
|
|
"66.6",
|
|
"290.0",
|
|
"SORT-A7",
|
|
"LANE-A",
|
|
"ZONE-4",
|
|
"CC-GAMMA",
|
|
"120",
|
|
"2.8",
|
|
"48",
|
|
"hybrid",
|
|
"1200",
|
|
"1",
|
|
"4",
|
|
"18.5",
|
|
"BS-2025-D4",
|
|
"segment 17 weight threshold exceeded",
|
|
"ACK batch batchIdList:BT-002-2026 acknowledged",
|
|
"ERROR: scan_attempts exhausted for pallet_id=PL-007",
|
|
"E006",
|
|
"@warehouse-Linux-sort-v3",
|
|
"UP-E010",
|
|
"NetworkException: connection to batch sync failed",
|
|
"{\"message\":{\"endpoint\":\"scanPallet\",\"status\":\"ok\"}}",
|
|
"[\"{\\\"name\\\":\\\"init\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"process\\\",\\\"startTime\\\":\\\"150\\\"}\"]",
|
|
"[\"cid-vwx234\",\"status-ok\"]",
|
|
"RerouteTrack",
|
|
"10.12.0.102",
|
|
"192.168.2.23",
|
|
"dev",
|
|
"medium",
|
|
"cli",
|
|
"SA-EAST",
|
|
"Java/17.0.8 (OpenJDK; sorter-agent)",
|
|
"SearchItems",
|
|
"site-sin-08",
|
|
"/api/v2/sorter/reroute",
|
|
"POST",
|
|
"403",
|
|
"internal",
|
|
"denied",
|
|
"task-b8c9d0",
|
|
"ent-007-wh",
|
|
"latency",
|
|
"timeout",
|
|
"allow",
|
|
"passive",
|
|
"sort",
|
|
"/config/zone/ZONE-3.yaml",
|
|
"567",
|
|
"warehouse-north",
|
|
"true",
|
|
"v3.1.0",
|
|
"BIN-D4",
|
|
"512",
|
|
"lane-monitor",
|
|
"rk-warehouse-005",
|
|
"tok-wh-ghi789jkl012",
|
|
"warehouse-merge",
|
|
"variant_a",
|
|
"ctl_xyz789",
|
|
"200",
|
|
"2800000",
|
|
"95000",
|
|
"0.05",
|
|
"Computer",
|
|
"checkoutPage",
|
|
"performanceMetric",
|
|
"vitalsLcp",
|
|
"https://shop.example.com/item/1004",
|
|
"SSR",
|
|
"Android 14",
|
|
"XSS Stored (Body)",
|
|
"GET /favicon.ico",
|
|
"Mozilla/5.0 Chrome/120",
|
|
"/api/v1/users",
|
|
"CloudServe GmbH",
|
|
"DE",
|
|
"hosting",
|
|
"[\"rate_limit_exceeded\"]",
|
|
"sess_002",
|
|
"None",
|
|
"false",
|
|
"ORD-003",
|
|
"None",
|
|
"placeOrder",
|
|
"dc-west"
|
|
],
|
|
[
|
|
"Q308 warehouse event record 2",
|
|
"stdout",
|
|
"PL-007",
|
|
"72.8",
|
|
"10.0",
|
|
"555.0",
|
|
"SORT-M3",
|
|
"LANE-B",
|
|
"ZONE-1",
|
|
"CC-DELTA",
|
|
"200",
|
|
"3.5",
|
|
"120",
|
|
"auto",
|
|
"100",
|
|
"3",
|
|
"5",
|
|
"22.0",
|
|
"BS-2026-A1",
|
|
"track TRK-ghi-jkl rerouted to ZONE-3",
|
|
"ACK batch batchIdList:BT-003-2026 confirmed",
|
|
"INFO: runtime_hours=1000 maintenance due http://warehouse.local/maint",
|
|
"E007",
|
|
"@warehouse-Windows-sort-v1",
|
|
"UP-E001",
|
|
"ValidationException: item_count exceeds defect_limit bounds",
|
|
"{\"message\":{\"endpoint\":\"rerouteTrack\",\"status\":\"queued\"}}",
|
|
"[\"{\\\"name\\\":\\\"init\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"validate\\\",\\\"startTime\\\":\\\"200\\\"}\", \"{\\\"name\\\":\\\"complete\\\",\\\"startTime\\\":\\\"400\\\"}\"]",
|
|
"[\"cid-yza567\",\"status-error\"]",
|
|
"MergeBatch",
|
|
"10.12.0.103",
|
|
"192.168.2.24",
|
|
"prod",
|
|
"low",
|
|
"dashboard",
|
|
"US-CENTRAL",
|
|
"Go-http-client/2.0 conveyor-monitor",
|
|
"UpdateBatch",
|
|
"site-mum-09",
|
|
"/api/v2/sorter/merge",
|
|
"PUT",
|
|
"200",
|
|
"inbound",
|
|
"pass",
|
|
"task-a1b2c3",
|
|
"ent-008-wh",
|
|
"security",
|
|
"overflow",
|
|
"allow",
|
|
"active",
|
|
"merge",
|
|
"/logs/warehouse/audit.log",
|
|
"3200",
|
|
"warehouse-south",
|
|
"false",
|
|
"v1.0.5",
|
|
"BIN-E5",
|
|
"1024",
|
|
"temp-regulator",
|
|
"rk-warehouse-006",
|
|
"tok-wh-mno345pqr678",
|
|
"warehouse-sync",
|
|
"variant_b",
|
|
"var1_pqr012",
|
|
"200",
|
|
"2100000",
|
|
"300000",
|
|
"0.12",
|
|
"Mobile",
|
|
"itemPage",
|
|
"interaction",
|
|
"vitalsInp",
|
|
"https://shop.example.com/",
|
|
"SSR",
|
|
"Android 14",
|
|
"File Inclusion",
|
|
"POST /admin/config",
|
|
"curl/7.88.1",
|
|
"/health",
|
|
"Acme Corp",
|
|
"UK",
|
|
"business",
|
|
"[\"torbot_ua_mismatch\"]",
|
|
"sess_003",
|
|
"None",
|
|
"true",
|
|
"ORD-004",
|
|
"None",
|
|
"updateItems",
|
|
"dc-east"
|
|
],
|
|
[
|
|
"Q308 warehouse event record 3 ACK batch batchIdList:Q308-3",
|
|
"stderr",
|
|
"PL-008",
|
|
"88.1",
|
|
"25.0",
|
|
"190.0",
|
|
"SORT-Z9",
|
|
"LANE-C",
|
|
"ZONE-2",
|
|
"CC-ALPHA",
|
|
"340",
|
|
"0.5",
|
|
"500",
|
|
"manual",
|
|
"250",
|
|
"2",
|
|
"1",
|
|
"26.3",
|
|
"BS-2026-B2",
|
|
"batch MNO456 merged into pallet PL-005",
|
|
"ACK batch batchIdList:BT-004-2026 validated",
|
|
"GET /api/v1/warehouse/status 200 OK",
|
|
"E008",
|
|
"@warehouse-Android-scan-v2",
|
|
"None",
|
|
"StateTransitionException: operation_mode hybrid invalid state",
|
|
"{\"message\":{\"endpoint\":\"mergeBatch\",\"status\":\"ok\"}}",
|
|
"[\"{\\\"name\\\":\\\"boot\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"calibrate\\\",\\\"startTime\\\":\\\"100\\\"}\"]",
|
|
"[\"cid-bcd890\",\"status-ok\"]",
|
|
"CheckThreshold",
|
|
"10.12.0.104",
|
|
"192.168.1.10",
|
|
"staging",
|
|
"critical",
|
|
"cli",
|
|
"EU-CENTRAL",
|
|
"PostmanRuntime/7.35.0",
|
|
"DeleteRecord",
|
|
"site-tor-10",
|
|
"None",
|
|
"DELETE",
|
|
"200",
|
|
"outbound",
|
|
"pass",
|
|
"task-d4e5f6",
|
|
"ent-009-wh",
|
|
"error",
|
|
"mismatch",
|
|
"block",
|
|
"passive",
|
|
"track",
|
|
"None",
|
|
"78",
|
|
"warehouse-central",
|
|
"None",
|
|
"v2.0.8",
|
|
"BIN-F6",
|
|
"2048",
|
|
"charge-checker",
|
|
"rk-warehouse-007",
|
|
"tok-wh-stu901vwx234",
|
|
"warehouse-sort",
|
|
"None",
|
|
"var2_mno345",
|
|
"200",
|
|
"3400000",
|
|
"120000",
|
|
"0.08",
|
|
"Computer",
|
|
"homePage",
|
|
"navigation",
|
|
"vitalsLcp",
|
|
"None",
|
|
"CSR",
|
|
"iOS 17.4",
|
|
"Desync Attack",
|
|
"GET /api/products",
|
|
"python-requests/2.31",
|
|
"/ip/10.0.0.1",
|
|
"NetGuard AS",
|
|
"US",
|
|
"business",
|
|
"[\"cookie_reuse\",\"session_hijack\"]",
|
|
"sess_002",
|
|
"None",
|
|
"false",
|
|
"ORD-005",
|
|
"None",
|
|
"verifyPayment",
|
|
"dc-central"
|
|
],
|
|
[
|
|
"Q308 warehouse event record 4",
|
|
"stdout",
|
|
"PL-001",
|
|
"94.6",
|
|
"42.5",
|
|
"900.0",
|
|
"SORT-X1",
|
|
"LANE-D",
|
|
"ZONE-3",
|
|
"CC-BETA",
|
|
"88",
|
|
"1.0",
|
|
"90",
|
|
"hybrid",
|
|
"500",
|
|
"5",
|
|
"2",
|
|
"30.1",
|
|
"BS-2026-A1",
|
|
"segment 88 speed anomaly detected",
|
|
"ACK batch batchIdList:BT-005-2026 processed",
|
|
"POST /api/v2/sorter/scan 201 Created",
|
|
"E009",
|
|
"@warehouse-iOS-scan-v1",
|
|
"UP-E003",
|
|
"OverflowException: throughput_rate 999.0 exceeds max capacity",
|
|
"{\"message\":{\"endpoint\":\"checkThreshold\",\"status\":\"warning\"}}",
|
|
"[\"{\\\"name\\\":\\\"scan\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"sort\\\",\\\"startTime\\\":\\\"180\\\"}\", \"{\\\"name\\\":\\\"pack\\\",\\\"startTime\\\":\\\"360\\\"}\"]",
|
|
"[\"cid-abc123\",\"status-ok\"]",
|
|
"ArchiveLog",
|
|
"10.12.0.105",
|
|
"192.168.1.11",
|
|
"dev",
|
|
"high",
|
|
"api",
|
|
"AP-CENTRAL",
|
|
"axios/1.6.0 (Node.js; warehouse-ui)",
|
|
"ScanPallet",
|
|
"site-nyc-01",
|
|
"/api/v1/archive/log",
|
|
"GET",
|
|
"201",
|
|
"internal",
|
|
"fail",
|
|
"task-g7h8i9",
|
|
"ent-010-wh",
|
|
"capacity",
|
|
"jam",
|
|
"allow",
|
|
"disabled",
|
|
"scan",
|
|
"/data/sorter/output.dat",
|
|
"1900",
|
|
"warehouse-east",
|
|
"false",
|
|
"v3.2.0",
|
|
"BIN-G7",
|
|
"4096",
|
|
"sorter-engine",
|
|
"rk-warehouse-008",
|
|
"tok-wh-yza567bcd890",
|
|
"warehouse-scan",
|
|
"control",
|
|
"sess_abc123",
|
|
"200",
|
|
"1100000",
|
|
"180000",
|
|
"0.25",
|
|
"Mobile",
|
|
"itemPage",
|
|
"performanceMetric",
|
|
"vitalsInp",
|
|
"https://shop.example.com/item/1006",
|
|
"SSR",
|
|
"Android 13",
|
|
"Evasion Technique",
|
|
"PUT /api/cart/update",
|
|
"Mozilla/5.0 Firefox/121",
|
|
"/api/v1/data",
|
|
"HostPro Inc",
|
|
"BR",
|
|
"hosting",
|
|
"[\"credential_stuffing\"]",
|
|
"sess_001",
|
|
"None",
|
|
"false",
|
|
"ORD-003",
|
|
"None",
|
|
"updateItems",
|
|
"dc-west"
|
|
],
|
|
[
|
|
"Q309 warehouse event record 0 ACK batch batchIdList:Q309-0",
|
|
"stdout",
|
|
"PL-002",
|
|
"88.1",
|
|
"25.0",
|
|
"190.0",
|
|
"SORT-A7",
|
|
"LANE-A",
|
|
"ZONE-4",
|
|
"CC-GAMMA",
|
|
"340",
|
|
"0.5",
|
|
"500",
|
|
"auto",
|
|
"250",
|
|
"2",
|
|
"1",
|
|
"26.3",
|
|
"BS-2026-B2",
|
|
"batch MNO456 merged into pallet PL-005",
|
|
"ACK batch batchIdList:BT-004-2026 validated",
|
|
"GET /api/v1/warehouse/status 200 OK",
|
|
"E008",
|
|
"@warehouse-Android-scan-v2",
|
|
"UP-E002",
|
|
"StateTransitionException: operation_mode hybrid invalid state",
|
|
"{\"message\":{\"endpoint\":\"mergeBatch\",\"status\":\"ok\"}}",
|
|
"[\"{\\\"name\\\":\\\"boot\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"calibrate\\\",\\\"startTime\\\":\\\"100\\\"}\"]",
|
|
"[\"cid-bcd890\",\"status-ok\"]",
|
|
"CheckThreshold",
|
|
"10.12.0.104",
|
|
"192.168.1.10",
|
|
"staging",
|
|
"critical",
|
|
"cli",
|
|
"EU-CENTRAL",
|
|
"PostmanRuntime/7.35.0",
|
|
"DeleteRecord",
|
|
"site-tor-10",
|
|
"/api/v1/health/check",
|
|
"DELETE",
|
|
"200",
|
|
"outbound",
|
|
"pass",
|
|
"task-d4e5f6",
|
|
"ent-009-wh",
|
|
"error",
|
|
"mismatch",
|
|
"block",
|
|
"passive",
|
|
"track",
|
|
"/logs/warehouse/app.log",
|
|
"78",
|
|
"warehouse-central",
|
|
"true",
|
|
"v2.0.8",
|
|
"BIN-F6",
|
|
"2048",
|
|
"charge-checker",
|
|
"rk-warehouse-007",
|
|
"tok-wh-stu901vwx234",
|
|
"warehouse-sort",
|
|
"variant_c",
|
|
"var2_mno345",
|
|
"200",
|
|
"3400000",
|
|
"120000",
|
|
"0.08",
|
|
"Computer",
|
|
"homePage",
|
|
"navigation",
|
|
"vitalsLcp",
|
|
"https://shop.example.com/item/1005",
|
|
"CSR",
|
|
"iOS 17.4",
|
|
"Desync Attack",
|
|
"GET /api/products",
|
|
"python-requests/2.31",
|
|
"/ip/10.0.0.1",
|
|
"NetGuard AS",
|
|
"US",
|
|
"business",
|
|
"[\"cookie_reuse\",\"session_hijack\"]",
|
|
"sess_002",
|
|
"None",
|
|
"false",
|
|
"ORD-005",
|
|
"Allowlisted",
|
|
"verifyPayment",
|
|
"dc-central"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q309",
|
|
"sql": "SELECT _timestamp, component_name, action_category, exception_message FROM \"{stream}\" WHERE component_name LIKE '%sorter%' OR component_name LIKE '%conveyor%' OR component_name LIKE '%zone%' ORDER BY _timestamp DESC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 18479000000,
|
|
"end_offset": 18553000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"component_name",
|
|
"action_category",
|
|
"exception_message"
|
|
],
|
|
"results": [
|
|
[
|
|
"zone-controller",
|
|
"performanceMetric",
|
|
"TimeoutException: lane LANE-A did not respond within 5000ms"
|
|
],
|
|
[
|
|
"zone-controller",
|
|
"performanceMetric",
|
|
"TimeoutException: lane LANE-A did not respond within 5000ms"
|
|
],
|
|
[
|
|
"conveyor-driver",
|
|
"interaction",
|
|
"NullPointerException at ConveyorController.handle()"
|
|
],
|
|
[
|
|
"sorter-engine",
|
|
"performanceMetric",
|
|
"OverflowException: throughput_rate 999.0 exceeds max capacity"
|
|
],
|
|
[
|
|
"sorter-engine",
|
|
"performanceMetric",
|
|
"OverflowException: throughput_rate 999.0 exceeds max capacity"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q310",
|
|
"sql": "SELECT _timestamp, os_platform, action_category, exception_message FROM \"{stream}\" WHERE re_match(os_platform, 'Android|iPhone|iOS') AND (exception_message LIKE '%Exception%' OR error_code LIKE '%E00%') AND action_category = 'performanceMetric'",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 18539000000,
|
|
"end_offset": 18613000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"os_platform",
|
|
"action_category",
|
|
"exception_message"
|
|
],
|
|
"results": [
|
|
[
|
|
"iOS 18.1",
|
|
"performanceMetric",
|
|
"ResourceExhaustedException: sorter_model SORT-M3 queue full"
|
|
],
|
|
[
|
|
"Android 12",
|
|
"performanceMetric",
|
|
"SecurityException: unauthorized access to control_center CC-ALPHA"
|
|
],
|
|
[
|
|
"Mac OS X (iPhone)",
|
|
"performanceMetric",
|
|
"ConfigurationException: missing facility_zone ZONE-3 override"
|
|
],
|
|
[
|
|
"Android 12",
|
|
"performanceMetric",
|
|
"SecurityException: unauthorized access to control_center CC-ALPHA"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q311",
|
|
"sql": "SELECT _timestamp, exception_message, upstream_error_code, error_code, event_detail FROM \"{stream}\" WHERE exception_message LIKE '%Exception%' OR upstream_error_code LIKE '%UP-E00%' OR error_code LIKE '%E00%' OR event_detail LIKE '%fail%' OR log_message LIKE '%ERROR%' OR issue_type LIKE '%timeout%' OR graphql_operation LIKE '%update%' OR api_name LIKE '%Search%' ORDER BY _timestamp DESC LIMIT 15",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 18599000000,
|
|
"end_offset": 18673000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"exception_message",
|
|
"upstream_error_code",
|
|
"error_code",
|
|
"event_detail"
|
|
],
|
|
"results": [
|
|
[
|
|
"StateTransitionException: operation_mode hybrid invalid state",
|
|
"UP-E002",
|
|
"E008",
|
|
"batch MNO456 merged into pallet PL-005"
|
|
],
|
|
[
|
|
"ValidationException: item_count exceeds defect_limit bounds",
|
|
"UP-E001",
|
|
"E007",
|
|
"track TRK-ghi-jkl rerouted to ZONE-3"
|
|
],
|
|
[
|
|
"ValidationException: item_count exceeds defect_limit bounds",
|
|
"UP-E001",
|
|
"E007",
|
|
"track TRK-ghi-jkl rerouted to ZONE-3"
|
|
],
|
|
[
|
|
"NetworkException: connection to batch sync failed",
|
|
"None",
|
|
"E006",
|
|
"segment 17 weight threshold exceeded"
|
|
],
|
|
[
|
|
"ConfigurationException: missing facility_zone ZONE-3 override",
|
|
"UP-E009",
|
|
"E005",
|
|
"batch XYZ789 timed out at checkpoint 3"
|
|
],
|
|
[
|
|
"ConfigurationException: missing facility_zone ZONE-3 override",
|
|
"UP-E009",
|
|
"E005",
|
|
"batch XYZ789 timed out at checkpoint 3"
|
|
],
|
|
[
|
|
"SecurityException: unauthorized access to control_center CC-ALPHA",
|
|
"None",
|
|
"E004",
|
|
"track TRK-abc-def diverted to LANE-B"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q312",
|
|
"sql": "SELECT * FROM \"{stream}\" WHERE exception_message NOT LIKE '%Timeout%' AND exception_message NOT LIKE '%NullPointer%' AND action_category = 'performanceMetric'",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 18659000000,
|
|
"end_offset": 18733000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"stream",
|
|
"pallet_id",
|
|
"load_factor",
|
|
"charge_remaining",
|
|
"throughput_rate",
|
|
"sorter_model",
|
|
"conveyor_lane",
|
|
"facility_zone",
|
|
"control_center",
|
|
"item_count",
|
|
"defect_limit",
|
|
"runtime_hours",
|
|
"operation_mode",
|
|
"package_size",
|
|
"scan_attempts",
|
|
"conveyor_segment",
|
|
"cell_temp",
|
|
"build_signature",
|
|
"event_detail",
|
|
"ack_detail",
|
|
"log_message",
|
|
"error_code",
|
|
"service_owner",
|
|
"upstream_error_code",
|
|
"exception_message",
|
|
"request_payload",
|
|
"phase_data",
|
|
"db_info",
|
|
"api_name",
|
|
"node_ip",
|
|
"source_ip",
|
|
"tag_a",
|
|
"tag_b",
|
|
"query_source",
|
|
"region_code",
|
|
"client_agent",
|
|
"operation_name",
|
|
"site_name",
|
|
"endpoint_path",
|
|
"http_method",
|
|
"response_code",
|
|
"scan_category",
|
|
"auth_result",
|
|
"task_id",
|
|
"entity_id",
|
|
"alert_tags",
|
|
"issue_type",
|
|
"filter_result",
|
|
"guard_mode",
|
|
"record_type",
|
|
"resource_path",
|
|
"latency_ms",
|
|
"org_name",
|
|
"threat_flag",
|
|
"build_version",
|
|
"bin_code",
|
|
"payload_size",
|
|
"component_name",
|
|
"route_key",
|
|
"auth_token",
|
|
"app_label",
|
|
"variant_tag",
|
|
"cookie_id",
|
|
"status_code",
|
|
"lcp_micros",
|
|
"inp_micros",
|
|
"cls_score",
|
|
"device_type",
|
|
"page_slug",
|
|
"action_category",
|
|
"action_subcategory",
|
|
"page_url",
|
|
"render_scope",
|
|
"os_platform",
|
|
"attack_name",
|
|
"http_request",
|
|
"user_agent_str",
|
|
"uri_path",
|
|
"geo_org",
|
|
"geo_country",
|
|
"geo_user_type",
|
|
"risk_rules_list",
|
|
"visitor_session_id",
|
|
"bot_flag",
|
|
"passthrough_flag",
|
|
"order_ref",
|
|
"info_tag",
|
|
"graphql_operation",
|
|
"datacenter"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q312 warehouse event record 2",
|
|
"stdout",
|
|
"PL-003",
|
|
"94.6",
|
|
"42.5",
|
|
"900.0",
|
|
"SORT-M3",
|
|
"LANE-B",
|
|
"ZONE-1",
|
|
"CC-DELTA",
|
|
"88",
|
|
"1.0",
|
|
"90",
|
|
"manual",
|
|
"500",
|
|
"5",
|
|
"2",
|
|
"30.1",
|
|
"BS-2026-A1",
|
|
"segment 88 speed anomaly detected",
|
|
"ACK batch batchIdList:BT-005-2026 processed",
|
|
"POST /api/v2/sorter/scan 201 Created",
|
|
"E009",
|
|
"@warehouse-iOS-scan-v1",
|
|
"UP-E003",
|
|
"OverflowException: throughput_rate 999.0 exceeds max capacity",
|
|
"{\"message\":{\"endpoint\":\"checkThreshold\",\"status\":\"warning\"}}",
|
|
"[\"{\\\"name\\\":\\\"scan\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"sort\\\",\\\"startTime\\\":\\\"180\\\"}\", \"{\\\"name\\\":\\\"pack\\\",\\\"startTime\\\":\\\"360\\\"}\"]",
|
|
"[\"cid-abc123\",\"status-ok\"]",
|
|
"ArchiveLog",
|
|
"10.12.0.105",
|
|
"192.168.1.11",
|
|
"dev",
|
|
"high",
|
|
"api",
|
|
"AP-CENTRAL",
|
|
"axios/1.6.0 (Node.js; warehouse-ui)",
|
|
"ScanPallet",
|
|
"site-nyc-01",
|
|
"/api/v1/archive/log",
|
|
"GET",
|
|
"201",
|
|
"internal",
|
|
"fail",
|
|
"task-g7h8i9",
|
|
"ent-010-wh",
|
|
"capacity",
|
|
"jam",
|
|
"allow",
|
|
"disabled",
|
|
"scan",
|
|
"/data/sorter/output.dat",
|
|
"1900",
|
|
"warehouse-east",
|
|
"false",
|
|
"v3.2.0",
|
|
"BIN-G7",
|
|
"4096",
|
|
"sorter-engine",
|
|
"rk-warehouse-008",
|
|
"tok-wh-yza567bcd890",
|
|
"warehouse-scan",
|
|
"control",
|
|
"sess_abc123",
|
|
"200",
|
|
"1100000",
|
|
"180000",
|
|
"0.25",
|
|
"Mobile",
|
|
"itemPage",
|
|
"performanceMetric",
|
|
"vitalsInp",
|
|
"https://shop.example.com/item/1006",
|
|
"SSR",
|
|
"Android 13",
|
|
"Evasion Technique",
|
|
"PUT /api/cart/update",
|
|
"Mozilla/5.0 Firefox/121",
|
|
"/api/v1/data",
|
|
"HostPro Inc",
|
|
"BR",
|
|
"hosting",
|
|
"[\"credential_stuffing\"]",
|
|
"sess_001",
|
|
"None",
|
|
"false",
|
|
"ORD-003",
|
|
"None",
|
|
"updateItems",
|
|
"dc-west"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q313",
|
|
"sql": "SELECT * FROM \"{stream}\" WHERE component_name LIKE '%sorter%' AND page_slug IN ('itemPage', 'cartPage', 'checkoutPage') AND action_category = 'performanceMetric' AND org_name = 'warehouse-east'",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 18719000000,
|
|
"end_offset": 18793000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"stream",
|
|
"pallet_id",
|
|
"load_factor",
|
|
"charge_remaining",
|
|
"throughput_rate",
|
|
"sorter_model",
|
|
"conveyor_lane",
|
|
"facility_zone",
|
|
"control_center",
|
|
"item_count",
|
|
"defect_limit",
|
|
"runtime_hours",
|
|
"operation_mode",
|
|
"package_size",
|
|
"scan_attempts",
|
|
"conveyor_segment",
|
|
"cell_temp",
|
|
"build_signature",
|
|
"event_detail",
|
|
"ack_detail",
|
|
"log_message",
|
|
"error_code",
|
|
"service_owner",
|
|
"upstream_error_code",
|
|
"exception_message",
|
|
"request_payload",
|
|
"phase_data",
|
|
"db_info",
|
|
"api_name",
|
|
"node_ip",
|
|
"source_ip",
|
|
"tag_a",
|
|
"tag_b",
|
|
"query_source",
|
|
"region_code",
|
|
"client_agent",
|
|
"operation_name",
|
|
"site_name",
|
|
"endpoint_path",
|
|
"http_method",
|
|
"response_code",
|
|
"scan_category",
|
|
"auth_result",
|
|
"task_id",
|
|
"entity_id",
|
|
"alert_tags",
|
|
"issue_type",
|
|
"filter_result",
|
|
"guard_mode",
|
|
"record_type",
|
|
"resource_path",
|
|
"latency_ms",
|
|
"org_name",
|
|
"threat_flag",
|
|
"build_version",
|
|
"bin_code",
|
|
"payload_size",
|
|
"component_name",
|
|
"route_key",
|
|
"auth_token",
|
|
"app_label",
|
|
"variant_tag",
|
|
"cookie_id",
|
|
"status_code",
|
|
"lcp_micros",
|
|
"inp_micros",
|
|
"cls_score",
|
|
"device_type",
|
|
"page_slug",
|
|
"action_category",
|
|
"action_subcategory",
|
|
"page_url",
|
|
"render_scope",
|
|
"os_platform",
|
|
"attack_name",
|
|
"http_request",
|
|
"user_agent_str",
|
|
"uri_path",
|
|
"geo_org",
|
|
"geo_country",
|
|
"geo_user_type",
|
|
"risk_rules_list",
|
|
"visitor_session_id",
|
|
"bot_flag",
|
|
"passthrough_flag",
|
|
"order_ref",
|
|
"info_tag",
|
|
"graphql_operation",
|
|
"datacenter"
|
|
],
|
|
"results": [],
|
|
"results_mode": "rowsort",
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q314",
|
|
"sql": "SELECT _timestamp, exception_message, error_code, visitor_session_id FROM \"{stream}\" WHERE exception_message LIKE '%Exception%' AND exception_message LIKE '%at%' ORDER BY _timestamp DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 18779000000,
|
|
"end_offset": 18853000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"exception_message",
|
|
"error_code",
|
|
"visitor_session_id"
|
|
],
|
|
"results": [
|
|
[
|
|
"ValidationException: item_count exceeds defect_limit bounds",
|
|
"E007",
|
|
"sess_003"
|
|
],
|
|
[
|
|
"NetworkException: connection to batch sync failed",
|
|
"E006",
|
|
"sess_002"
|
|
],
|
|
[
|
|
"NetworkException: connection to batch sync failed",
|
|
"E006",
|
|
"sess_002"
|
|
],
|
|
[
|
|
"ConfigurationException: missing facility_zone ZONE-3 override",
|
|
"E005",
|
|
"sess_001"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q315",
|
|
"sql": "SELECT _timestamp, log, action_category, page_slug FROM \"{stream}\" WHERE log LIKE '%ACK%' OR log LIKE '%ERROR%' ORDER BY _timestamp DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 18839000000,
|
|
"end_offset": 18913000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"action_category",
|
|
"page_slug"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q316 warehouse event record 0 ACK batch batchIdList:Q316-0",
|
|
"performanceMetric",
|
|
"itemPage"
|
|
],
|
|
[
|
|
"Q315 warehouse event record 3 ACK batch batchIdList:Q315-3",
|
|
"performanceMetric",
|
|
"itemPage"
|
|
],
|
|
[
|
|
"Q315 warehouse event record 0 ACK batch batchIdList:Q315-0",
|
|
"performanceMetric",
|
|
"checkoutPage"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q316",
|
|
"sql": "SELECT _timestamp, os_platform, exception_message, error_code FROM \"{stream}\" WHERE re_match(os_platform, 'Android|iPhone|iOS') AND action_category = 'performanceMetric' AND (exception_message LIKE '%Exception%' OR exception_message LIKE '%Error%') ORDER BY _timestamp DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 18899000000,
|
|
"end_offset": 18973000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"os_platform",
|
|
"exception_message",
|
|
"error_code"
|
|
],
|
|
"results": [
|
|
[
|
|
"iOS 18.1",
|
|
"ResourceExhaustedException: sorter_model SORT-M3 queue full",
|
|
"E003"
|
|
],
|
|
[
|
|
"Android 13",
|
|
"OverflowException: throughput_rate 999.0 exceeds max capacity",
|
|
"E009"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q317",
|
|
"sql": "SELECT DISTINCT component_name, error_code FROM \"{stream}\" WHERE (exception_message LIKE '%NullPointer%' OR exception_message LIKE '%Timeout%' OR exception_message LIKE '%ResourceExhausted%') AND action_category = 'performanceMetric'",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 18959000000,
|
|
"end_offset": 19033000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"component_name",
|
|
"error_code"
|
|
],
|
|
"results": [
|
|
[
|
|
"track-router",
|
|
"E003"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q318",
|
|
"sql": "SELECT * FROM \"{stream}\" WHERE component_name LIKE '%track%' AND error_code NOT IN ('E001', 'E002') AND exception_message NOT LIKE '%Timeout%' AND action_category = 'performanceMetric'",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 19019000000,
|
|
"end_offset": 19093000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"stream",
|
|
"pallet_id",
|
|
"load_factor",
|
|
"charge_remaining",
|
|
"throughput_rate",
|
|
"sorter_model",
|
|
"conveyor_lane",
|
|
"facility_zone",
|
|
"control_center",
|
|
"item_count",
|
|
"defect_limit",
|
|
"runtime_hours",
|
|
"operation_mode",
|
|
"package_size",
|
|
"scan_attempts",
|
|
"conveyor_segment",
|
|
"cell_temp",
|
|
"build_signature",
|
|
"event_detail",
|
|
"ack_detail",
|
|
"log_message",
|
|
"error_code",
|
|
"service_owner",
|
|
"upstream_error_code",
|
|
"exception_message",
|
|
"request_payload",
|
|
"phase_data",
|
|
"db_info",
|
|
"api_name",
|
|
"node_ip",
|
|
"source_ip",
|
|
"tag_a",
|
|
"tag_b",
|
|
"query_source",
|
|
"region_code",
|
|
"client_agent",
|
|
"operation_name",
|
|
"site_name",
|
|
"endpoint_path",
|
|
"http_method",
|
|
"response_code",
|
|
"scan_category",
|
|
"auth_result",
|
|
"task_id",
|
|
"entity_id",
|
|
"alert_tags",
|
|
"issue_type",
|
|
"filter_result",
|
|
"guard_mode",
|
|
"record_type",
|
|
"resource_path",
|
|
"latency_ms",
|
|
"org_name",
|
|
"threat_flag",
|
|
"build_version",
|
|
"bin_code",
|
|
"payload_size",
|
|
"component_name",
|
|
"route_key",
|
|
"auth_token",
|
|
"app_label",
|
|
"variant_tag",
|
|
"cookie_id",
|
|
"status_code",
|
|
"lcp_micros",
|
|
"inp_micros",
|
|
"cls_score",
|
|
"device_type",
|
|
"page_slug",
|
|
"action_category",
|
|
"action_subcategory",
|
|
"page_url",
|
|
"render_scope",
|
|
"os_platform",
|
|
"attack_name",
|
|
"http_request",
|
|
"user_agent_str",
|
|
"uri_path",
|
|
"geo_org",
|
|
"geo_country",
|
|
"geo_user_type",
|
|
"risk_rules_list",
|
|
"visitor_session_id",
|
|
"bot_flag",
|
|
"passthrough_flag",
|
|
"order_ref",
|
|
"info_tag",
|
|
"graphql_operation",
|
|
"datacenter"
|
|
],
|
|
"results": [],
|
|
"results_mode": "rowsort",
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q319",
|
|
"sql": "SELECT _timestamp, log, action_category FROM \"{stream}\" WHERE str_match_ignore_case(log, 'error') OR str_match_ignore_case(log, 'ack') ORDER BY _timestamp DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 19079000000,
|
|
"end_offset": 19153000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"action_category"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q320 warehouse event record 0 ACK batch batchIdList:Q320-0",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q319 warehouse event record 3 ACK batch batchIdList:Q319-3",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q319 warehouse event record 0 ACK batch batchIdList:Q319-0",
|
|
"navigation"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q320",
|
|
"sql": "SELECT * FROM \"{stream}\" WHERE re_not_match(error_code, 'E00[24]') AND action_category = 'performanceMetric' AND exception_message IS NOT NULL",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 19139000000,
|
|
"end_offset": 19213000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"stream",
|
|
"pallet_id",
|
|
"load_factor",
|
|
"charge_remaining",
|
|
"throughput_rate",
|
|
"sorter_model",
|
|
"conveyor_lane",
|
|
"facility_zone",
|
|
"control_center",
|
|
"item_count",
|
|
"defect_limit",
|
|
"runtime_hours",
|
|
"operation_mode",
|
|
"package_size",
|
|
"scan_attempts",
|
|
"conveyor_segment",
|
|
"cell_temp",
|
|
"build_signature",
|
|
"event_detail",
|
|
"ack_detail",
|
|
"log_message",
|
|
"error_code",
|
|
"service_owner",
|
|
"upstream_error_code",
|
|
"exception_message",
|
|
"request_payload",
|
|
"phase_data",
|
|
"db_info",
|
|
"api_name",
|
|
"node_ip",
|
|
"source_ip",
|
|
"tag_a",
|
|
"tag_b",
|
|
"query_source",
|
|
"region_code",
|
|
"client_agent",
|
|
"operation_name",
|
|
"site_name",
|
|
"endpoint_path",
|
|
"http_method",
|
|
"response_code",
|
|
"scan_category",
|
|
"auth_result",
|
|
"task_id",
|
|
"entity_id",
|
|
"alert_tags",
|
|
"issue_type",
|
|
"filter_result",
|
|
"guard_mode",
|
|
"record_type",
|
|
"resource_path",
|
|
"latency_ms",
|
|
"org_name",
|
|
"threat_flag",
|
|
"build_version",
|
|
"bin_code",
|
|
"payload_size",
|
|
"component_name",
|
|
"route_key",
|
|
"auth_token",
|
|
"app_label",
|
|
"variant_tag",
|
|
"cookie_id",
|
|
"status_code",
|
|
"lcp_micros",
|
|
"inp_micros",
|
|
"cls_score",
|
|
"device_type",
|
|
"page_slug",
|
|
"action_category",
|
|
"action_subcategory",
|
|
"page_url",
|
|
"render_scope",
|
|
"os_platform",
|
|
"attack_name",
|
|
"http_request",
|
|
"user_agent_str",
|
|
"uri_path",
|
|
"geo_org",
|
|
"geo_country",
|
|
"geo_user_type",
|
|
"risk_rules_list",
|
|
"visitor_session_id",
|
|
"bot_flag",
|
|
"passthrough_flag",
|
|
"order_ref",
|
|
"info_tag",
|
|
"graphql_operation",
|
|
"datacenter"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q320 warehouse event record 0 ACK batch batchIdList:Q320-0",
|
|
"stdout",
|
|
"PL-001",
|
|
"67.9",
|
|
"75.3",
|
|
"320.0",
|
|
"SORT-X1",
|
|
"LANE-D",
|
|
"ZONE-3",
|
|
"CC-BETA",
|
|
"410",
|
|
"2.0",
|
|
"24",
|
|
"hybrid",
|
|
"1000",
|
|
"2",
|
|
"4",
|
|
"19.2",
|
|
"BS-2026-C3",
|
|
"batch DEF234 registered at loading dock",
|
|
"ACK batch batchIdList:BT-007-2026 dispatched",
|
|
"WARN: lane jam detected at conveyor_segment=3",
|
|
"E001",
|
|
"@warehouse-Windows-scan-v2",
|
|
"UP-E005",
|
|
"TimeoutException: lane LANE-A did not respond within 5000ms",
|
|
"{\"message\":{\"endpoint\":\"retryScan\",\"status\":\"retrying\"}}",
|
|
"[\"{\\\"name\\\":\\\"queue\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"dequeue\\\",\\\"startTime\\\":\\\"70\\\"}\", \"{\\\"name\\\":\\\"dispatch\\\",\\\"startTime\\\":\\\"140\\\"}\"]",
|
|
"[\"cid-ghi789\",\"status-failed\"]",
|
|
"SyncZone",
|
|
"10.12.1.202",
|
|
"192.168.1.13",
|
|
"prod",
|
|
"low",
|
|
"dashboard",
|
|
"US-WEST",
|
|
"Alamofire/5.8.0 (iOS; scan-app)",
|
|
"MergeBatch",
|
|
"site-tok-03",
|
|
"/api/v1/zone/sync",
|
|
"PUT",
|
|
"400",
|
|
"inbound",
|
|
"pass",
|
|
"task-m3n4o5",
|
|
"ent-002-wh",
|
|
"error",
|
|
"overflow",
|
|
"allow",
|
|
"passive",
|
|
"merge",
|
|
"/logs/warehouse/error.log",
|
|
"12",
|
|
"warehouse-north",
|
|
"true",
|
|
"v1.1.2",
|
|
"BIN-I9",
|
|
"16384",
|
|
"zone-controller",
|
|
"rk-warehouse-010",
|
|
"tok-wh-klm789nop012",
|
|
"warehouse-merge",
|
|
"control",
|
|
"ctl_vwx901",
|
|
"404",
|
|
"2500000",
|
|
"70000",
|
|
"0.15",
|
|
"Tablet",
|
|
"itemPage",
|
|
"performanceMetric",
|
|
"clickEvent",
|
|
"https://shop.example.com/item/1001",
|
|
"SSR",
|
|
"Windows 11",
|
|
"XSS Reflected (Header)",
|
|
"GET /.env",
|
|
"Mozilla/5.0 Safari/17.2",
|
|
"/ip/192.168.1.1",
|
|
"DataCenter EU",
|
|
"JP",
|
|
"business",
|
|
"[\"rate_limit_exceeded\",\"geo_anomaly\"]",
|
|
"sess_003",
|
|
"None",
|
|
"false",
|
|
"ORD-007",
|
|
"None",
|
|
"verifyPayment",
|
|
"dc-west"
|
|
],
|
|
[
|
|
"Q320 warehouse event record 2",
|
|
"stdout",
|
|
"PL-003",
|
|
"99.0",
|
|
"95.0",
|
|
"610.0",
|
|
"SORT-M3",
|
|
"LANE-B",
|
|
"ZONE-1",
|
|
"CC-DELTA",
|
|
"60",
|
|
"3.0",
|
|
"168",
|
|
"manual",
|
|
"350",
|
|
"1",
|
|
"1",
|
|
"28.9",
|
|
"BS-2026-A1",
|
|
"segment 42 scan completed with no defects",
|
|
"ACK batch batchIdList:BT-009-2026 retried",
|
|
"DEBUG: charge_remaining below threshold 15.0",
|
|
"E003",
|
|
"@warehouse-iOS-track-v3",
|
|
"UP-E007",
|
|
"ResourceExhaustedException: sorter_model SORT-M3 queue full",
|
|
"{\"message\":{\"endpoint\":\"searchItems\",\"status\":\"ok\"}}",
|
|
"[\"{\\\"name\\\":\\\"acquire\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"process\\\",\\\"startTime\\\":\\\"90\\\"}\", \"{\\\"name\\\":\\\"release\\\",\\\"startTime\\\":\\\"270\\\"}\"]",
|
|
"[\"cid-mno345\",\"status-retrying\"]",
|
|
"UpdateBatch",
|
|
"10.12.1.204",
|
|
"192.168.2.20",
|
|
"dev",
|
|
"high",
|
|
"api",
|
|
"EU-NORTH",
|
|
"Mozilla/5.0 WarehouseScanner/1.0",
|
|
"ArchiveLog",
|
|
"site-sfo-05",
|
|
"/api/v1/warehouse/update",
|
|
"GET",
|
|
"500",
|
|
"internal",
|
|
"pass",
|
|
"task-s9t0u1",
|
|
"ent-004-wh",
|
|
"latency",
|
|
"jam",
|
|
"block",
|
|
"passive",
|
|
"scan",
|
|
"/config/zone/ZONE-2.yaml",
|
|
"230",
|
|
"warehouse-central",
|
|
"true",
|
|
"v2.1.3",
|
|
"BIN-A1",
|
|
"32768",
|
|
"track-router",
|
|
"rk-warehouse-002",
|
|
"tok-wh-wxy901zab234",
|
|
"warehouse-sort",
|
|
"variant_b",
|
|
"var1_yza234",
|
|
"502",
|
|
"3200000",
|
|
"80000",
|
|
"0.2",
|
|
"Computer",
|
|
"searchPage",
|
|
"performanceMetric",
|
|
"vitalsInp",
|
|
"https://shop.example.com/search?q=test",
|
|
"CSR",
|
|
"iOS 18.1",
|
|
"CSRF Attempt",
|
|
"GET /api/users?id=1",
|
|
"Go-http-client/2.0",
|
|
"/api/v2/search",
|
|
"GlobalTech Inc",
|
|
"IN",
|
|
"business",
|
|
"[\"credential_stuffing\",\"rapid_login\"]",
|
|
"sess_001",
|
|
"verified_bot",
|
|
"true",
|
|
"ORD-001",
|
|
"None",
|
|
"createAccount",
|
|
"dc-west"
|
|
],
|
|
[
|
|
"Q320 warehouse event record 4",
|
|
"stdout",
|
|
"PL-005",
|
|
"33.0",
|
|
"33.3",
|
|
"840.0",
|
|
"SORT-X1",
|
|
"LANE-D",
|
|
"ZONE-3",
|
|
"CC-BETA",
|
|
"50",
|
|
"1.2",
|
|
"720",
|
|
"manual",
|
|
"850",
|
|
"4",
|
|
"3",
|
|
"40.0",
|
|
"BS-2026-C3",
|
|
"batch XYZ789 timed out at checkpoint 3",
|
|
"ACK batch batchIdList:BT-001-2026 received",
|
|
"WARN: cell_temp=38.2 exceeding limit at sorter_model=SORT-Z9",
|
|
"E005",
|
|
"@warehouse-iOS-sort-v2",
|
|
"UP-E009",
|
|
"ConfigurationException: missing facility_zone ZONE-3 override",
|
|
"{\"message\":{\"endpoint\":\"deleteRecord\",\"status\":\"failed\"}}",
|
|
"[\"{\\\"name\\\":\\\"start\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"pause\\\",\\\"startTime\\\":\\\"160\\\"}\", \"{\\\"name\\\":\\\"resume\\\",\\\"startTime\\\":\\\"320\\\"}\", \"{\\\"name\\\":\\\"stop\\\",\\\"startTime\\\":\\\"480\\\"}\"]",
|
|
"[\"cid-stu901\",\"status-warning\"]",
|
|
"ScanPallet",
|
|
"10.12.0.101",
|
|
"192.168.2.22",
|
|
"staging",
|
|
"high",
|
|
"dashboard",
|
|
"AP-EAST",
|
|
"Python-urllib/3.11 warehouse-client",
|
|
"SyncZone",
|
|
"site-dub-07",
|
|
"/api/v2/sorter/scan",
|
|
"GET",
|
|
"401",
|
|
"outbound",
|
|
"fail",
|
|
"task-y5z6a7",
|
|
"ent-006-wh",
|
|
"capacity",
|
|
"overflow",
|
|
"block",
|
|
"active",
|
|
"scan",
|
|
"/data/sorter/temp.dat",
|
|
"89",
|
|
"warehouse-west",
|
|
"false",
|
|
"v3.0.1",
|
|
"BIN-C3",
|
|
"128",
|
|
"pallet-mapper",
|
|
"rk-warehouse-004",
|
|
"tok-wh-abc123def456",
|
|
"warehouse-track",
|
|
"control",
|
|
"sess_def456",
|
|
"403",
|
|
"1500000",
|
|
"200000",
|
|
"0.06",
|
|
"Tablet",
|
|
"itemPage",
|
|
"performanceMetric",
|
|
"pageView",
|
|
"https://shop.example.com/cart",
|
|
"CSR",
|
|
"Mac OS X (iPhone)",
|
|
"Command Injection",
|
|
"GET /search?q=test",
|
|
"Mozilla/5.0 Edge/120",
|
|
"/swag/graphql",
|
|
"FastHost Ltd",
|
|
"US",
|
|
"business",
|
|
"[\"scraping_pattern\",\"high_freq\"]",
|
|
"sess_001",
|
|
"None",
|
|
"false",
|
|
"ORD-001",
|
|
"None",
|
|
"getInventory",
|
|
"dc-central"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q321",
|
|
"sql": "SELECT _timestamp, component_name, exception_message FROM \"{stream}\" WHERE regexp_like(component_name, '(sorter|conveyor|zone|batch|lane|pallet|charge)-[a-z]+') AND action_category = 'performanceMetric' ORDER BY _timestamp DESC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 19199000000,
|
|
"end_offset": 19273000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"component_name",
|
|
"exception_message"
|
|
],
|
|
"results": [
|
|
[
|
|
"lane-monitor",
|
|
"NetworkException: connection to batch sync failed"
|
|
],
|
|
[
|
|
"pallet-mapper",
|
|
"ConfigurationException: missing facility_zone ZONE-3 override"
|
|
],
|
|
[
|
|
"pallet-mapper",
|
|
"ConfigurationException: missing facility_zone ZONE-3 override"
|
|
],
|
|
[
|
|
"batch-sync",
|
|
"SecurityException: unauthorized access to control_center CC-ALPHA"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q322",
|
|
"sql": "SELECT _timestamp, os_platform, action_category, exception_message FROM \"{stream}\" WHERE re_match(os_platform, 'Android|iPhone|iOS') AND re_not_match(error_code, 'E00[89]') AND action_category IN ('performanceMetric', 'interaction')",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 19259000000,
|
|
"end_offset": 19333000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"os_platform",
|
|
"action_category",
|
|
"exception_message"
|
|
],
|
|
"results": [
|
|
[
|
|
"Android 14",
|
|
"interaction",
|
|
"ValidationException: item_count exceeds defect_limit bounds"
|
|
],
|
|
[
|
|
"Mac OS X (iPhone)",
|
|
"interaction",
|
|
"NullPointerException at ConveyorController.handle()"
|
|
],
|
|
[
|
|
"Mac OS X (iPhone)",
|
|
"interaction",
|
|
"NullPointerException at ConveyorController.handle()"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q323",
|
|
"sql": "SELECT * FROM \"{stream}\" WHERE pallet_id LIKE '%PL-001%' AND scan_category = 'inbound' ORDER BY _timestamp DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 19319000000,
|
|
"end_offset": 19393000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"stream",
|
|
"pallet_id",
|
|
"load_factor",
|
|
"charge_remaining",
|
|
"throughput_rate",
|
|
"sorter_model",
|
|
"conveyor_lane",
|
|
"facility_zone",
|
|
"control_center",
|
|
"item_count",
|
|
"defect_limit",
|
|
"runtime_hours",
|
|
"operation_mode",
|
|
"package_size",
|
|
"scan_attempts",
|
|
"conveyor_segment",
|
|
"cell_temp",
|
|
"build_signature",
|
|
"event_detail",
|
|
"ack_detail",
|
|
"log_message",
|
|
"error_code",
|
|
"service_owner",
|
|
"upstream_error_code",
|
|
"exception_message",
|
|
"request_payload",
|
|
"phase_data",
|
|
"db_info",
|
|
"api_name",
|
|
"node_ip",
|
|
"source_ip",
|
|
"tag_a",
|
|
"tag_b",
|
|
"query_source",
|
|
"region_code",
|
|
"client_agent",
|
|
"operation_name",
|
|
"site_name",
|
|
"endpoint_path",
|
|
"http_method",
|
|
"response_code",
|
|
"scan_category",
|
|
"auth_result",
|
|
"task_id",
|
|
"entity_id",
|
|
"alert_tags",
|
|
"issue_type",
|
|
"filter_result",
|
|
"guard_mode",
|
|
"record_type",
|
|
"resource_path",
|
|
"latency_ms",
|
|
"org_name",
|
|
"threat_flag",
|
|
"build_version",
|
|
"bin_code",
|
|
"payload_size",
|
|
"component_name",
|
|
"route_key",
|
|
"auth_token",
|
|
"app_label",
|
|
"variant_tag",
|
|
"cookie_id",
|
|
"status_code",
|
|
"lcp_micros",
|
|
"inp_micros",
|
|
"cls_score",
|
|
"device_type",
|
|
"page_slug",
|
|
"action_category",
|
|
"action_subcategory",
|
|
"page_url",
|
|
"render_scope",
|
|
"os_platform",
|
|
"attack_name",
|
|
"http_request",
|
|
"user_agent_str",
|
|
"uri_path",
|
|
"geo_org",
|
|
"geo_country",
|
|
"geo_user_type",
|
|
"risk_rules_list",
|
|
"visitor_session_id",
|
|
"bot_flag",
|
|
"passthrough_flag",
|
|
"order_ref",
|
|
"info_tag",
|
|
"graphql_operation",
|
|
"datacenter"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q323 warehouse event record 1",
|
|
"stdout",
|
|
"PL-001",
|
|
"67.9",
|
|
"75.3",
|
|
"320.0",
|
|
"SORT-X1",
|
|
"LANE-D",
|
|
"ZONE-3",
|
|
"CC-BETA",
|
|
"410",
|
|
"2.0",
|
|
"24",
|
|
"hybrid",
|
|
"1000",
|
|
"2",
|
|
"4",
|
|
"19.2",
|
|
"BS-2026-C3",
|
|
"batch DEF234 registered at loading dock",
|
|
"ACK batch batchIdList:BT-007-2026 dispatched",
|
|
"WARN: lane jam detected at conveyor_segment=3",
|
|
"E001",
|
|
"@warehouse-Windows-scan-v2",
|
|
"UP-E005",
|
|
"TimeoutException: lane LANE-A did not respond within 5000ms",
|
|
"{\"message\":{\"endpoint\":\"retryScan\",\"status\":\"retrying\"}}",
|
|
"[\"{\\\"name\\\":\\\"queue\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"dequeue\\\",\\\"startTime\\\":\\\"70\\\"}\", \"{\\\"name\\\":\\\"dispatch\\\",\\\"startTime\\\":\\\"140\\\"}\"]",
|
|
"[\"cid-ghi789\",\"status-failed\"]",
|
|
"SyncZone",
|
|
"10.12.1.202",
|
|
"192.168.1.13",
|
|
"prod",
|
|
"low",
|
|
"dashboard",
|
|
"US-WEST",
|
|
"Alamofire/5.8.0 (iOS; scan-app)",
|
|
"MergeBatch",
|
|
"site-tok-03",
|
|
"/api/v1/zone/sync",
|
|
"PUT",
|
|
"400",
|
|
"inbound",
|
|
"pass",
|
|
"task-m3n4o5",
|
|
"ent-002-wh",
|
|
"error",
|
|
"overflow",
|
|
"allow",
|
|
"passive",
|
|
"merge",
|
|
"/logs/warehouse/error.log",
|
|
"12",
|
|
"warehouse-north",
|
|
"true",
|
|
"v1.1.2",
|
|
"BIN-I9",
|
|
"16384",
|
|
"zone-controller",
|
|
"rk-warehouse-010",
|
|
"tok-wh-klm789nop012",
|
|
"warehouse-merge",
|
|
"control",
|
|
"ctl_vwx901",
|
|
"404",
|
|
"2500000",
|
|
"70000",
|
|
"0.15",
|
|
"Tablet",
|
|
"itemPage",
|
|
"performanceMetric",
|
|
"clickEvent",
|
|
"https://shop.example.com/item/1001",
|
|
"SSR",
|
|
"Windows 11",
|
|
"XSS Reflected (Header)",
|
|
"GET /.env",
|
|
"Mozilla/5.0 Safari/17.2",
|
|
"/ip/192.168.1.1",
|
|
"DataCenter EU",
|
|
"JP",
|
|
"business",
|
|
"[\"rate_limit_exceeded\",\"geo_anomaly\"]",
|
|
"sess_003",
|
|
"None",
|
|
"false",
|
|
"ORD-007",
|
|
"None",
|
|
"verifyPayment",
|
|
"dc-west"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q324",
|
|
"sql": "SELECT _timestamp, visitor_session_id, exception_message, error_code FROM \"{stream}\" WHERE (exception_message LIKE '%Exception%' OR error_code LIKE '%E00%') AND exception_message NOT LIKE '%Timeout%' AND error_code NOT IN ('E002') AND page_slug = 'itemPage'",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 19379000000,
|
|
"end_offset": 19453000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"visitor_session_id",
|
|
"exception_message",
|
|
"error_code"
|
|
],
|
|
"results": [
|
|
[
|
|
"sess_001",
|
|
"ConfigurationException: missing facility_zone ZONE-3 override",
|
|
"E005"
|
|
],
|
|
[
|
|
"sess_003",
|
|
"ValidationException: item_count exceeds defect_limit bounds",
|
|
"E007"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q325",
|
|
"sql": "SELECT _timestamp, array_extract(regexp_match(db_info, 'cid-([a-z0-9]+)'), 1) AS extracted_cid, action_category FROM \"{stream}\" WHERE action_category = 'performanceMetric' AND db_info IS NOT NULL LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 19439000000,
|
|
"end_offset": 19513000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"extracted_cid",
|
|
"action_category"
|
|
],
|
|
"results": [
|
|
[
|
|
"vwx234",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"abc123",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"abc123",
|
|
"performanceMetric"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q461",
|
|
"sql": "SELECT _timestamp, log, action_category FROM \"{stream}\" WHERE match_all('warehouse') AND action_category = 'performanceMetric' ORDER BY _timestamp DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 27599000000,
|
|
"end_offset": 27673000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"action_category"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q461 warehouse event record 2",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q461 warehouse event record 1",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q460 warehouse event record 4",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q461 warehouse event record 0 ACK batch batchIdList:Q461-0",
|
|
"performanceMetric"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q462",
|
|
"sql": "SELECT _timestamp, exception_message, component_name FROM \"{stream}\" WHERE str_match_ignore_case(exception_message, 'exception') AND component_name IS NOT NULL ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 27659000000,
|
|
"end_offset": 27733000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"exception_message",
|
|
"component_name"
|
|
],
|
|
"results": [
|
|
[
|
|
"ValidationException: item_count exceeds defect_limit bounds",
|
|
"temp-regulator"
|
|
],
|
|
[
|
|
"StateTransitionException: operation_mode hybrid invalid state",
|
|
"charge-checker"
|
|
],
|
|
[
|
|
"StateTransitionException: operation_mode hybrid invalid state",
|
|
"charge-checker"
|
|
],
|
|
[
|
|
"OverflowException: throughput_rate 999.0 exceeds max capacity",
|
|
"sorter-engine"
|
|
],
|
|
[
|
|
"NullPointerException at ConveyorController.handle()",
|
|
"conveyor-driver"
|
|
],
|
|
[
|
|
"NullPointerException at ConveyorController.handle()",
|
|
"conveyor-driver"
|
|
],
|
|
[
|
|
"TimeoutException: lane LANE-A did not respond within 5000ms",
|
|
"zone-controller"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q463",
|
|
"sql": "SELECT _timestamp, log, request_payload FROM \"{stream}\" WHERE match_all('warehouse') AND log LIKE '%event%' ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 27719000000,
|
|
"end_offset": 27793000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"request_payload"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q463 warehouse event record 0 ACK batch batchIdList:Q463-0",
|
|
"{\"message\":{\"endpoint\":\"archiveLog\",\"status\":\"ok\"}}"
|
|
],
|
|
[
|
|
"Q462 warehouse event record 4",
|
|
"{\"message\":{\"endpoint\":\"retryScan\",\"status\":\"retrying\"}}"
|
|
],
|
|
[
|
|
"Q463 warehouse event record 1",
|
|
"{\"message\":{\"endpoint\":\"retryScan\",\"status\":\"retrying\"}}"
|
|
],
|
|
[
|
|
"Q463 warehouse event record 2",
|
|
"{\"message\":{\"endpoint\":\"syncZone\",\"status\":\"syncing\"}}"
|
|
],
|
|
[
|
|
"Q463 warehouse event record 3 ACK batch batchIdList:Q463-3",
|
|
"{\"message\":{\"endpoint\":\"searchItems\",\"status\":\"ok\"}}"
|
|
],
|
|
[
|
|
"Q464 warehouse event record 0 ACK batch batchIdList:Q464-0",
|
|
"{\"message\":{\"endpoint\":\"searchItems\",\"status\":\"ok\"}}"
|
|
],
|
|
[
|
|
"Q463 warehouse event record 4",
|
|
"{\"message\":{\"endpoint\":\"updateBatch\",\"status\":\"pending\"}}"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q464",
|
|
"sql": "SELECT _timestamp, event_detail, action_category FROM \"{stream}\" WHERE str_match_ignore_case(event_detail, 'batch') AND action_category = 'performanceMetric' ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 27779000000,
|
|
"end_offset": 27853000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"event_detail",
|
|
"action_category"
|
|
],
|
|
"results": [
|
|
[
|
|
"batch XYZ789 timed out at checkpoint 3",
|
|
"performanceMetric"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q465",
|
|
"sql": "SELECT _timestamp, db_info, action_category FROM \"{stream}\" WHERE match_all('cid') AND db_info IS NOT NULL ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 27839000000,
|
|
"end_offset": 27913000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"db_info",
|
|
"action_category"
|
|
],
|
|
"results": [],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q466",
|
|
"sql": "SELECT _timestamp, ack_detail, facility_zone FROM \"{stream}\" WHERE str_match_ignore_case(ack_detail, 'received') AND facility_zone IS NOT NULL ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 27899000000,
|
|
"end_offset": 27973000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"ack_detail",
|
|
"facility_zone"
|
|
],
|
|
"results": [],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q467",
|
|
"sql": "SELECT _timestamp, exception_message, error_code FROM \"{stream}\" WHERE match_all('Exception') AND error_code IS NOT NULL AND error_code LIKE 'E00%' ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 27959000000,
|
|
"end_offset": 28033000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"exception_message",
|
|
"error_code"
|
|
],
|
|
"results": [],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q468",
|
|
"sql": "SELECT _timestamp, log, action_subcategory FROM \"{stream}\" WHERE match_all('warehouse') AND action_subcategory IS NOT NULL ORDER BY _timestamp ASC LIMIT 15",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 28019000000,
|
|
"end_offset": 28093000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"action_subcategory"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q468 warehouse event record 0 ACK batch batchIdList:Q468-0",
|
|
"pageView"
|
|
],
|
|
[
|
|
"Q467 warehouse event record 4",
|
|
"vitalsLcp"
|
|
],
|
|
[
|
|
"Q468 warehouse event record 1",
|
|
"vitalsLcp"
|
|
],
|
|
[
|
|
"Q468 warehouse event record 2",
|
|
"vitalsInp"
|
|
],
|
|
[
|
|
"Q468 warehouse event record 3 ACK batch batchIdList:Q468-3",
|
|
"vitalsLcp"
|
|
],
|
|
[
|
|
"Q469 warehouse event record 0 ACK batch batchIdList:Q469-0",
|
|
"vitalsLcp"
|
|
],
|
|
[
|
|
"Q468 warehouse event record 4",
|
|
"vitalsInp"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q469",
|
|
"sql": "SELECT _timestamp, exception_message, error_code, component_name FROM \"{stream}\" WHERE (match_all('Exception') OR match_all('Timeout')) AND action_category = 'performanceMetric' ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 28079000000,
|
|
"end_offset": 28153000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"exception_message",
|
|
"error_code",
|
|
"component_name"
|
|
],
|
|
"results": [],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q470",
|
|
"sql": "SELECT _timestamp, log_message, uri_path FROM \"{stream}\" WHERE str_match_ignore_case(log_message, 'INFO') AND uri_path LIKE '/api/%' ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 28139000000,
|
|
"end_offset": 28213000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log_message",
|
|
"uri_path"
|
|
],
|
|
"results": [],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q540",
|
|
"sql": "SELECT _timestamp, exception_message, log_message FROM \"{stream}\" WHERE re_match(exception_message, 'NullPointer|Timeout|Security') AND re_not_match(exception_message, 'Network') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 32339000000,
|
|
"end_offset": 32413000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"exception_message",
|
|
"log_message"
|
|
],
|
|
"results": [
|
|
[
|
|
"TimeoutException: lane LANE-A did not respond within 5000ms",
|
|
"WARN: lane jam detected at conveyor_segment=3"
|
|
],
|
|
[
|
|
"SecurityException: unauthorized access to control_center CC-ALPHA",
|
|
"INFO: throughput_rate=840.0 spike at facility_zone=ZONE-4"
|
|
],
|
|
[
|
|
"SecurityException: unauthorized access to control_center CC-ALPHA",
|
|
"INFO: throughput_rate=840.0 spike at facility_zone=ZONE-4"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q541",
|
|
"sql": "SELECT _timestamp, request_payload FROM \"{stream}\" WHERE str_match_ignore_case(request_payload, 'endpoint') AND NOT str_match_ignore_case(request_payload, 'failed') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 32399000000,
|
|
"end_offset": 32473000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"request_payload"
|
|
],
|
|
"results": [
|
|
[
|
|
"{\"message\":{\"endpoint\":\"updateBatch\",\"status\":\"pending\"}}"
|
|
],
|
|
[
|
|
"{\"message\":{\"endpoint\":\"scanPallet\",\"status\":\"ok\"}}"
|
|
],
|
|
[
|
|
"{\"message\":{\"endpoint\":\"rerouteTrack\",\"status\":\"queued\"}}"
|
|
],
|
|
[
|
|
"{\"message\":{\"endpoint\":\"rerouteTrack\",\"status\":\"queued\"}}"
|
|
],
|
|
[
|
|
"{\"message\":{\"endpoint\":\"mergeBatch\",\"status\":\"ok\"}}"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q542",
|
|
"sql": "SELECT _timestamp, COALESCE(exception_message, log_message) AS msg FROM \"{stream}\" WHERE regexp_like(COALESCE(exception_message, log_message), '.*Exception.*') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 32459000000,
|
|
"end_offset": 32533000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"_timestamp",
|
|
"msg"
|
|
],
|
|
"note": "regexp_like with COALESCE argument cannot be translated to DuckDB regexp_matches",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q543",
|
|
"sql": "SELECT _timestamp, log_message FROM \"{stream}\" WHERE match_all('ACK batch') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 32519000000,
|
|
"end_offset": 32593000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log_message"
|
|
],
|
|
"results": [
|
|
[
|
|
"INFO: batch sync completed, url=http://warehouse.local/sync"
|
|
],
|
|
[
|
|
"DEBUG: charge_remaining below threshold 15.0"
|
|
],
|
|
[
|
|
"DEBUG: charge_remaining below threshold 15.0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q544",
|
|
"sql": "SELECT _timestamp, COALESCE(exception_message, log_message, log) AS searchable_text FROM \"{stream}\" WHERE str_match_ignore_case(COALESCE(exception_message, log_message, log), 'error') AND COALESCE(exception_message, log_message, log) IS NOT NULL ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 32579000000,
|
|
"end_offset": 32653000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"_timestamp",
|
|
"searchable_text"
|
|
],
|
|
"note": "str_match_ignore_case with COALESCE argument cannot be translated to DuckDB lower()+LIKE",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q025",
|
|
"sql": "SELECT _timestamp, log FROM \"{stream}\" WHERE match_all('ACK') ORDER BY _timestamp DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 4379000000,
|
|
"end_offset": 4543000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q076 warehouse event record 0 ACK batch batchIdList:Q076-0"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 3 ACK batch batchIdList:Q075-3"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 0 ACK batch batchIdList:Q075-0"
|
|
],
|
|
[
|
|
"Q074 warehouse event record 3 ACK batch batchIdList:Q074-3"
|
|
],
|
|
[
|
|
"Q074 warehouse event record 0 ACK batch batchIdList:Q074-0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q611",
|
|
"sql": "SELECT _timestamp, log FROM \"{stream}\" WHERE match_all('Q074') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 4379000000,
|
|
"end_offset": 4543000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q074 warehouse event record 0 ACK batch batchIdList:Q074-0"
|
|
],
|
|
[
|
|
"Q074 warehouse event record 1"
|
|
],
|
|
[
|
|
"Q074 warehouse event record 2"
|
|
],
|
|
[
|
|
"Q074 warehouse event record 3 ACK batch batchIdList:Q074-3"
|
|
],
|
|
[
|
|
"Q074 warehouse event record 4"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q631",
|
|
"sql": "SELECT COUNT(*) AS cnt FROM \"{stream}\" WHERE match_all('Q076')",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 4379000000,
|
|
"end_offset": 4543000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"3"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1000",
|
|
"sql": "SELECT * FROM \"{stream}\" WHERE match_all('ACK') ORDER BY _timestamp DESC LIMIT 3",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 4379000000,
|
|
"end_offset": 4543000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"stream",
|
|
"pallet_id",
|
|
"load_factor",
|
|
"charge_remaining",
|
|
"throughput_rate",
|
|
"sorter_model",
|
|
"conveyor_lane",
|
|
"facility_zone",
|
|
"control_center",
|
|
"item_count",
|
|
"defect_limit",
|
|
"runtime_hours",
|
|
"operation_mode",
|
|
"package_size",
|
|
"scan_attempts",
|
|
"conveyor_segment",
|
|
"cell_temp",
|
|
"build_signature",
|
|
"event_detail",
|
|
"ack_detail",
|
|
"log_message",
|
|
"error_code",
|
|
"service_owner",
|
|
"upstream_error_code",
|
|
"exception_message",
|
|
"request_payload",
|
|
"phase_data",
|
|
"db_info",
|
|
"api_name",
|
|
"node_ip",
|
|
"source_ip",
|
|
"tag_a",
|
|
"tag_b",
|
|
"query_source",
|
|
"region_code",
|
|
"client_agent",
|
|
"operation_name",
|
|
"site_name",
|
|
"endpoint_path",
|
|
"http_method",
|
|
"response_code",
|
|
"scan_category",
|
|
"auth_result",
|
|
"task_id",
|
|
"entity_id",
|
|
"alert_tags",
|
|
"issue_type",
|
|
"filter_result",
|
|
"guard_mode",
|
|
"record_type",
|
|
"resource_path",
|
|
"latency_ms",
|
|
"org_name",
|
|
"threat_flag",
|
|
"build_version",
|
|
"bin_code",
|
|
"payload_size",
|
|
"component_name",
|
|
"route_key",
|
|
"auth_token",
|
|
"app_label",
|
|
"variant_tag",
|
|
"cookie_id",
|
|
"status_code",
|
|
"lcp_micros",
|
|
"inp_micros",
|
|
"cls_score",
|
|
"device_type",
|
|
"page_slug",
|
|
"action_category",
|
|
"action_subcategory",
|
|
"page_url",
|
|
"render_scope",
|
|
"os_platform",
|
|
"attack_name",
|
|
"http_request",
|
|
"user_agent_str",
|
|
"uri_path",
|
|
"geo_org",
|
|
"geo_country",
|
|
"geo_user_type",
|
|
"risk_rules_list",
|
|
"visitor_session_id",
|
|
"bot_flag",
|
|
"passthrough_flag",
|
|
"order_ref",
|
|
"info_tag",
|
|
"graphql_operation",
|
|
"datacenter"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q076 warehouse event record 0 ACK batch batchIdList:Q076-0",
|
|
"stdout",
|
|
"PL-005",
|
|
"94.6",
|
|
"42.5",
|
|
"900.0",
|
|
"SORT-X1",
|
|
"LANE-D",
|
|
"ZONE-3",
|
|
"CC-BETA",
|
|
"88",
|
|
"1.0",
|
|
"90",
|
|
"manual",
|
|
"500",
|
|
"5",
|
|
"2",
|
|
"30.1",
|
|
"BS-2026-A1",
|
|
"segment 88 speed anomaly detected",
|
|
"ACK batch batchIdList:BT-005-2026 processed",
|
|
"POST /api/v2/sorter/scan 201 Created",
|
|
"E009",
|
|
"@warehouse-iOS-scan-v1",
|
|
"None",
|
|
"OverflowException: throughput_rate 999.0 exceeds max capacity",
|
|
"{\"message\":{\"endpoint\":\"checkThreshold\",\"status\":\"warning\"}}",
|
|
"[\"{\\\"name\\\":\\\"scan\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"sort\\\",\\\"startTime\\\":\\\"180\\\"}\", \"{\\\"name\\\":\\\"pack\\\",\\\"startTime\\\":\\\"360\\\"}\"]",
|
|
"[\"cid-abc123\",\"status-ok\"]",
|
|
"ArchiveLog",
|
|
"10.12.0.105",
|
|
"192.168.1.11",
|
|
"dev",
|
|
"high",
|
|
"api",
|
|
"AP-CENTRAL",
|
|
"axios/1.6.0 (Node.js; warehouse-ui)",
|
|
"ScanPallet",
|
|
"site-nyc-01",
|
|
"None",
|
|
"GET",
|
|
"201",
|
|
"internal",
|
|
"fail",
|
|
"task-g7h8i9",
|
|
"ent-010-wh",
|
|
"capacity",
|
|
"jam",
|
|
"allow",
|
|
"disabled",
|
|
"scan",
|
|
"None",
|
|
"1900",
|
|
"warehouse-east",
|
|
"None",
|
|
"v3.2.0",
|
|
"BIN-G7",
|
|
"4096",
|
|
"sorter-engine",
|
|
"rk-warehouse-008",
|
|
"tok-wh-yza567bcd890",
|
|
"warehouse-scan",
|
|
"None",
|
|
"sess_abc123",
|
|
"200",
|
|
"1100000",
|
|
"180000",
|
|
"0.25",
|
|
"Mobile",
|
|
"itemPage",
|
|
"performanceMetric",
|
|
"vitalsInp",
|
|
"None",
|
|
"SSR",
|
|
"Android 13",
|
|
"Evasion Technique",
|
|
"PUT /api/cart/update",
|
|
"Mozilla/5.0 Firefox/121",
|
|
"/api/v1/data",
|
|
"HostPro Inc",
|
|
"BR",
|
|
"hosting",
|
|
"[\"credential_stuffing\"]",
|
|
"sess_001",
|
|
"None",
|
|
"false",
|
|
"ORD-003",
|
|
"None",
|
|
"updateItems",
|
|
"dc-west"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 3 ACK batch batchIdList:Q075-3",
|
|
"stdout",
|
|
"PL-003",
|
|
"94.6",
|
|
"42.5",
|
|
"900.0",
|
|
"SORT-M3",
|
|
"LANE-B",
|
|
"ZONE-1",
|
|
"CC-DELTA",
|
|
"88",
|
|
"1.0",
|
|
"90",
|
|
"manual",
|
|
"500",
|
|
"5",
|
|
"2",
|
|
"30.1",
|
|
"BS-2026-A1",
|
|
"segment 88 speed anomaly detected",
|
|
"ACK batch batchIdList:BT-005-2026 processed",
|
|
"POST /api/v2/sorter/scan 201 Created",
|
|
"E009",
|
|
"@warehouse-iOS-scan-v1",
|
|
"None",
|
|
"OverflowException: throughput_rate 999.0 exceeds max capacity",
|
|
"{\"message\":{\"endpoint\":\"checkThreshold\",\"status\":\"warning\"}}",
|
|
"[\"{\\\"name\\\":\\\"scan\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"sort\\\",\\\"startTime\\\":\\\"180\\\"}\", \"{\\\"name\\\":\\\"pack\\\",\\\"startTime\\\":\\\"360\\\"}\"]",
|
|
"[\"cid-abc123\",\"status-ok\"]",
|
|
"ArchiveLog",
|
|
"10.12.0.105",
|
|
"192.168.1.11",
|
|
"dev",
|
|
"high",
|
|
"api",
|
|
"AP-CENTRAL",
|
|
"axios/1.6.0 (Node.js; warehouse-ui)",
|
|
"ScanPallet",
|
|
"site-nyc-01",
|
|
"None",
|
|
"GET",
|
|
"201",
|
|
"internal",
|
|
"fail",
|
|
"task-g7h8i9",
|
|
"ent-010-wh",
|
|
"capacity",
|
|
"jam",
|
|
"allow",
|
|
"disabled",
|
|
"scan",
|
|
"None",
|
|
"1900",
|
|
"warehouse-east",
|
|
"None",
|
|
"v3.2.0",
|
|
"BIN-G7",
|
|
"4096",
|
|
"sorter-engine",
|
|
"rk-warehouse-008",
|
|
"tok-wh-yza567bcd890",
|
|
"warehouse-scan",
|
|
"None",
|
|
"sess_abc123",
|
|
"200",
|
|
"1100000",
|
|
"180000",
|
|
"0.25",
|
|
"Mobile",
|
|
"itemPage",
|
|
"performanceMetric",
|
|
"vitalsInp",
|
|
"None",
|
|
"SSR",
|
|
"Android 13",
|
|
"Evasion Technique",
|
|
"PUT /api/cart/update",
|
|
"Mozilla/5.0 Firefox/121",
|
|
"/api/v1/data",
|
|
"HostPro Inc",
|
|
"BR",
|
|
"hosting",
|
|
"[\"credential_stuffing\"]",
|
|
"sess_001",
|
|
"None",
|
|
"false",
|
|
"ORD-003",
|
|
"None",
|
|
"updateItems",
|
|
"dc-west"
|
|
],
|
|
[
|
|
"Q075 warehouse event record 0 ACK batch batchIdList:Q075-0",
|
|
"stderr",
|
|
"PL-008",
|
|
"55.2",
|
|
"66.6",
|
|
"290.0",
|
|
"SORT-Z9",
|
|
"LANE-C",
|
|
"ZONE-2",
|
|
"CC-ALPHA",
|
|
"120",
|
|
"2.8",
|
|
"48",
|
|
"manual",
|
|
"1200",
|
|
"1",
|
|
"4",
|
|
"18.5",
|
|
"BS-2025-D4",
|
|
"segment 17 weight threshold exceeded",
|
|
"ACK batch batchIdList:BT-002-2026 acknowledged",
|
|
"ERROR: scan_attempts exhausted for pallet_id=PL-007",
|
|
"E006",
|
|
"@warehouse-Linux-sort-v3",
|
|
"UP-E010",
|
|
"NetworkException: connection to batch sync failed",
|
|
"{\"message\":{\"endpoint\":\"scanPallet\",\"status\":\"ok\"}}",
|
|
"[\"{\\\"name\\\":\\\"init\\\",\\\"startTime\\\":\\\"0\\\"}\", \"{\\\"name\\\":\\\"process\\\",\\\"startTime\\\":\\\"150\\\"}\"]",
|
|
"[\"cid-vwx234\",\"status-ok\"]",
|
|
"RerouteTrack",
|
|
"10.12.0.102",
|
|
"192.168.2.23",
|
|
"dev",
|
|
"medium",
|
|
"cli",
|
|
"SA-EAST",
|
|
"Java/17.0.8 (OpenJDK; sorter-agent)",
|
|
"SearchItems",
|
|
"site-sin-08",
|
|
"/api/v2/sorter/reroute",
|
|
"POST",
|
|
"403",
|
|
"internal",
|
|
"denied",
|
|
"task-b8c9d0",
|
|
"ent-007-wh",
|
|
"latency",
|
|
"timeout",
|
|
"allow",
|
|
"passive",
|
|
"sort",
|
|
"/config/zone/ZONE-3.yaml",
|
|
"567",
|
|
"warehouse-north",
|
|
"true",
|
|
"v3.1.0",
|
|
"BIN-D4",
|
|
"512",
|
|
"lane-monitor",
|
|
"rk-warehouse-005",
|
|
"tok-wh-ghi789jkl012",
|
|
"warehouse-merge",
|
|
"variant_a",
|
|
"ctl_xyz789",
|
|
"200",
|
|
"2800000",
|
|
"95000",
|
|
"0.05",
|
|
"Computer",
|
|
"checkoutPage",
|
|
"performanceMetric",
|
|
"vitalsLcp",
|
|
"https://shop.example.com/item/1004",
|
|
"SSR",
|
|
"Android 14",
|
|
"XSS Stored (Body)",
|
|
"GET /favicon.ico",
|
|
"Mozilla/5.0 Chrome/120",
|
|
"/api/v1/users",
|
|
"CloudServe GmbH",
|
|
"DE",
|
|
"hosting",
|
|
"[\"rate_limit_exceeded\"]",
|
|
"sess_002",
|
|
"None",
|
|
"false",
|
|
"ORD-003",
|
|
"None",
|
|
"placeOrder",
|
|
"dc-west"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q657",
|
|
"sql": "SELECT histogram(_timestamp, '1 minute') AS _time, COUNT(*) FILTER (WHERE match_all('ACK')) AS ack_count, COUNT(*) FILTER (WHERE match_all('error')) AS error_count FROM \"{stream}\" GROUP BY _time ORDER BY _time",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 39300000000,
|
|
"end_offset": 39480000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"_time",
|
|
"ack_count",
|
|
"error_count"
|
|
],
|
|
"results": [
|
|
[
|
|
"2026-08-14T16:00:00",
|
|
"2",
|
|
"0"
|
|
],
|
|
[
|
|
"2026-08-14T16:01:00",
|
|
"2",
|
|
"0"
|
|
],
|
|
[
|
|
"2026-08-14T16:02:00",
|
|
"2",
|
|
"0"
|
|
],
|
|
[
|
|
"2026-08-14T16:03:00",
|
|
"1",
|
|
"0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q658",
|
|
"sql": "SELECT _timestamp, log, exception_message FROM \"{stream}\" WHERE match_all('warehouse') AND re_match(exception_message, 'Exception|Error') ORDER BY _timestamp LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 39360000000,
|
|
"end_offset": 39540000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"exception_message"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q657 warehouse event record 0 ACK batch batchIdList:Q657-0",
|
|
"DataIntegrityException: pallet_id PL-002 checksum mismatch"
|
|
],
|
|
[
|
|
"Q656 warehouse event record 4",
|
|
"ResourceExhaustedException: sorter_model SORT-M3 queue full"
|
|
],
|
|
[
|
|
"Q657 warehouse event record 1",
|
|
"ResourceExhaustedException: sorter_model SORT-M3 queue full"
|
|
],
|
|
[
|
|
"Q657 warehouse event record 2",
|
|
"SecurityException: unauthorized access to control_center CC-ALPHA"
|
|
],
|
|
[
|
|
"Q657 warehouse event record 3 ACK batch batchIdList:Q657-3",
|
|
"ConfigurationException: missing facility_zone ZONE-3 override"
|
|
],
|
|
[
|
|
"Q658 warehouse event record 0 ACK batch batchIdList:Q658-0",
|
|
"ConfigurationException: missing facility_zone ZONE-3 override"
|
|
],
|
|
[
|
|
"Q657 warehouse event record 4",
|
|
"NetworkException: connection to batch sync failed"
|
|
],
|
|
[
|
|
"Q658 warehouse event record 1",
|
|
"NetworkException: connection to batch sync failed"
|
|
],
|
|
[
|
|
"Q658 warehouse event record 2",
|
|
"ValidationException: item_count exceeds defect_limit bounds"
|
|
],
|
|
[
|
|
"Q658 warehouse event record 3 ACK batch batchIdList:Q658-3",
|
|
"StateTransitionException: operation_mode hybrid invalid state"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q659",
|
|
"sql": "SELECT _timestamp, log, action_category FROM \"{stream}\" WHERE match_all('event') AND str_match_ignore_case(action_category, 'performance') ORDER BY _timestamp LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 39420000000,
|
|
"end_offset": 39600000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"action_category"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q658 warehouse event record 0 ACK batch batchIdList:Q658-0",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q657 warehouse event record 4",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q658 warehouse event record 1",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q658 warehouse event record 4",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q659 warehouse event record 1",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q659 warehouse event record 3 ACK batch batchIdList:Q659-3",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q660 warehouse event record 0 ACK batch batchIdList:Q660-0",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q660 warehouse event record 2",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q660 warehouse event record 3 ACK batch batchIdList:Q660-3",
|
|
"performanceMetric"
|
|
],
|
|
[
|
|
"Q661 warehouse event record 0 ACK batch batchIdList:Q661-0",
|
|
"performanceMetric"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q660",
|
|
"sql": "SELECT facility_zone, COUNT(*) FILTER (WHERE match_all('ACK')) AS ack_logs, COUNT(*) FILTER (WHERE match_all('warehouse')) AS wh_logs, COUNT(*) AS total FROM \"{stream}\" GROUP BY facility_zone ORDER BY facility_zone",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 39480000000,
|
|
"end_offset": 39660000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"ack_logs",
|
|
"wh_logs",
|
|
"total"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-1",
|
|
"2",
|
|
"5",
|
|
"5"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"2",
|
|
"4",
|
|
"4"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"2",
|
|
"4",
|
|
"4"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"1",
|
|
"3",
|
|
"3"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q661",
|
|
"sql": "SELECT _timestamp, log, facility_zone, match_all('ACK') AS has_ack, ROW_NUMBER() OVER (PARTITION BY facility_zone ORDER BY _timestamp) AS rn FROM \"{stream}\" ORDER BY _timestamp LIMIT 15",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 39540000000,
|
|
"end_offset": 39720000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"facility_zone",
|
|
"has_ack",
|
|
"rn"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q660 warehouse event record 0 ACK batch batchIdList:Q660-0",
|
|
"ZONE-3",
|
|
"True",
|
|
"1"
|
|
],
|
|
[
|
|
"Q659 warehouse event record 4",
|
|
"ZONE-2",
|
|
"False",
|
|
"1"
|
|
],
|
|
[
|
|
"Q660 warehouse event record 1",
|
|
"ZONE-4",
|
|
"False",
|
|
"1"
|
|
],
|
|
[
|
|
"Q660 warehouse event record 2",
|
|
"ZONE-1",
|
|
"False",
|
|
"1"
|
|
],
|
|
[
|
|
"Q660 warehouse event record 3 ACK batch batchIdList:Q660-3",
|
|
"ZONE-2",
|
|
"True",
|
|
"2"
|
|
],
|
|
[
|
|
"Q661 warehouse event record 0 ACK batch batchIdList:Q661-0",
|
|
"ZONE-4",
|
|
"True",
|
|
"2"
|
|
],
|
|
[
|
|
"Q660 warehouse event record 4",
|
|
"ZONE-3",
|
|
"False",
|
|
"2"
|
|
],
|
|
[
|
|
"Q661 warehouse event record 1",
|
|
"ZONE-1",
|
|
"False",
|
|
"2"
|
|
],
|
|
[
|
|
"Q661 warehouse event record 2",
|
|
"ZONE-2",
|
|
"False",
|
|
"3"
|
|
],
|
|
[
|
|
"Q661 warehouse event record 3 ACK batch batchIdList:Q661-3",
|
|
"ZONE-3",
|
|
"True",
|
|
"3"
|
|
],
|
|
[
|
|
"Q662 warehouse event record 0 ACK batch batchIdList:Q662-0",
|
|
"ZONE-1",
|
|
"True",
|
|
"3"
|
|
],
|
|
[
|
|
"Q661 warehouse event record 4",
|
|
"ZONE-4",
|
|
"False",
|
|
"3"
|
|
],
|
|
[
|
|
"Q662 warehouse event record 1",
|
|
"ZONE-2",
|
|
"False",
|
|
"4"
|
|
],
|
|
[
|
|
"Q662 warehouse event record 2",
|
|
"ZONE-3",
|
|
"False",
|
|
"4"
|
|
],
|
|
[
|
|
"Q662 warehouse event record 3 ACK batch batchIdList:Q662-3",
|
|
"ZONE-4",
|
|
"True",
|
|
"4"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_without_single_node_opt": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q792",
|
|
"sql": "SELECT component_name, COUNT(*) AS cnt FROM \"{stream}\" WHERE match_all('warehouse') GROUP BY component_name HAVING COUNT(*) >= 1 ORDER BY cnt DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 47459000000,
|
|
"end_offset": 47533000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"component_name",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"charge-checker",
|
|
"2"
|
|
],
|
|
[
|
|
"conveyor-driver",
|
|
"2"
|
|
],
|
|
[
|
|
"zone-controller",
|
|
"1"
|
|
],
|
|
[
|
|
"temp-regulator",
|
|
"1"
|
|
],
|
|
[
|
|
"sorter-engine",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q793",
|
|
"sql": "SELECT facility_zone, COUNT(*) FILTER (WHERE match_all('error')) AS error_hits, COUNT(*) FILTER (WHERE match_all('ACK')) AS ack_hits, COUNT(*) AS total FROM \"{stream}\" GROUP BY facility_zone ORDER BY total DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 47519000000,
|
|
"end_offset": 47593000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"error_hits",
|
|
"ack_hits",
|
|
"total"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-3",
|
|
"0",
|
|
"1",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"0",
|
|
"1",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"0",
|
|
"1",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"0",
|
|
"0",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q794",
|
|
"sql": "SELECT facility_zone, COUNT(*) AS cnt, AVG(throughput_rate) AS avg_rate FROM \"{stream}\" WHERE match_all('warehouse') GROUP BY facility_zone HAVING AVG(throughput_rate) > 200 ORDER BY avg_rate DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 47579000000,
|
|
"end_offset": 47653000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"cnt",
|
|
"avg_rate"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-3",
|
|
"1",
|
|
"840.0"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"2",
|
|
"582.5"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"2",
|
|
"507.5"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"2",
|
|
"507.5"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q795",
|
|
"sql": "SELECT _timestamp, log, facility_zone, true AS has_ack, ROW_NUMBER() OVER (PARTITION BY facility_zone ORDER BY _timestamp) AS rn FROM \"{stream}\" WHERE match_all('ACK batch') ORDER BY facility_zone, rn LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 47639000000,
|
|
"end_offset": 47713000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"facility_zone",
|
|
"has_ack",
|
|
"rn"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q795 warehouse event record 3 ACK batch batchIdList:Q795-3",
|
|
"ZONE-1",
|
|
"True",
|
|
"1"
|
|
],
|
|
[
|
|
"Q795 warehouse event record 0 ACK batch batchIdList:Q795-0",
|
|
"ZONE-2",
|
|
"True",
|
|
"1"
|
|
],
|
|
[
|
|
"Q796 warehouse event record 0 ACK batch batchIdList:Q796-0",
|
|
"ZONE-3",
|
|
"True",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q796",
|
|
"sql": "SELECT facility_zone, SUM(CASE WHEN match_all('error') THEN 1 ELSE 0 END) AS error_matches, COUNT(*) AS total, RANK() OVER (ORDER BY SUM(CASE WHEN match_all('error') THEN 1 ELSE 0 END) DESC) AS error_rank FROM \"{stream}\" GROUP BY facility_zone ORDER BY error_rank LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 47699000000,
|
|
"end_offset": 47773000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"error_matches",
|
|
"total",
|
|
"error_rank"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-3",
|
|
"0",
|
|
"2",
|
|
"1"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"0",
|
|
"2",
|
|
"1"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"0",
|
|
"2",
|
|
"1"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"0",
|
|
"1",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q797",
|
|
"sql": "WITH fts_hits AS (SELECT _timestamp, facility_zone, throughput_rate, log FROM \"{stream}\" WHERE match_all('warehouse')) SELECT facility_zone, COUNT(*) AS hit_cnt, AVG(throughput_rate) AS avg_rate FROM fts_hits GROUP BY facility_zone ORDER BY hit_cnt DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 47759000000,
|
|
"end_offset": 47833000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"hit_cnt",
|
|
"avg_rate"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-3",
|
|
"2",
|
|
"725.0"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"2",
|
|
"385.0"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"2",
|
|
"725.0"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"1",
|
|
"725.0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q798",
|
|
"sql": "WITH fts_base AS (SELECT * FROM \"{stream}\" WHERE match_all('warehouse')), fts_ranked AS (SELECT *, ROW_NUMBER() OVER (PARTITION BY facility_zone ORDER BY _timestamp) AS rn FROM fts_base) SELECT facility_zone, MAX(CASE WHEN rn = 1 THEN log END) AS first_hit, MAX(CASE WHEN rn = 2 THEN log END) AS second_hit, COUNT(*) AS total_hits FROM fts_ranked GROUP BY facility_zone ORDER BY total_hits DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 47819000000,
|
|
"end_offset": 47893000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"first_hit",
|
|
"second_hit",
|
|
"total_hits"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"Q797 warehouse event record 4",
|
|
"Q798 warehouse event record 3 ACK batch batchIdList:Q798-3",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"Q798 warehouse event record 1",
|
|
"Q799 warehouse event record 0 ACK batch batchIdList:Q799-0",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"Q798 warehouse event record 0 ACK batch batchIdList:Q798-0",
|
|
"Q798 warehouse event record 4",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"Q798 warehouse event record 2",
|
|
"None",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q799",
|
|
"sql": "SELECT facility_zone, pallet_id, match_all('warehouse') AS match_a, load_factor FROM \"{stream}\" WHERE match_all('warehouse') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 47879000000,
|
|
"end_offset": 47953000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"pallet_id",
|
|
"match_a",
|
|
"load_factor"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-2",
|
|
"PL-004",
|
|
"True",
|
|
"88.1"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"PL-003",
|
|
"True",
|
|
"94.6"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"PL-005",
|
|
"True",
|
|
"94.6"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"PL-006",
|
|
"True",
|
|
"45.3"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"PL-007",
|
|
"True",
|
|
"67.9"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"PL-001",
|
|
"True",
|
|
"67.9"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"PL-008",
|
|
"True",
|
|
"21.4"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q800",
|
|
"sql": "SELECT component_name, COUNT(*) AS join_cnt, SUM(CASE WHEN match_all('error') THEN 1 ELSE 0 END) AS fts_errors FROM \"{stream}\" GROUP BY component_name ORDER BY fts_errors DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 47939000000,
|
|
"end_offset": 48013000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"component_name",
|
|
"join_cnt",
|
|
"fts_errors"
|
|
],
|
|
"results": [
|
|
[
|
|
"batch-sync",
|
|
"2",
|
|
"0"
|
|
],
|
|
[
|
|
"track-router",
|
|
"1",
|
|
"0"
|
|
],
|
|
[
|
|
"zone-controller",
|
|
"1",
|
|
"0"
|
|
],
|
|
[
|
|
"scan-hub",
|
|
"2",
|
|
"0"
|
|
],
|
|
[
|
|
"pallet-mapper",
|
|
"1",
|
|
"0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q801",
|
|
"sql": "SELECT _timestamp, log, match_all('warehouse') AS has_wh, match_all('error') AS has_error, match_all('ACK') AS has_ack FROM \"{stream}\" WHERE match_all('warehouse') OR match_all('error') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 47999000000,
|
|
"end_offset": 48073000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"has_wh",
|
|
"has_error",
|
|
"has_ack"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q801 warehouse event record 0 ACK batch batchIdList:Q801-0",
|
|
"True",
|
|
"False",
|
|
"True"
|
|
],
|
|
[
|
|
"Q800 warehouse event record 4",
|
|
"True",
|
|
"False",
|
|
"False"
|
|
],
|
|
[
|
|
"Q801 warehouse event record 1",
|
|
"True",
|
|
"False",
|
|
"False"
|
|
],
|
|
[
|
|
"Q801 warehouse event record 2",
|
|
"True",
|
|
"False",
|
|
"False"
|
|
],
|
|
[
|
|
"Q801 warehouse event record 3 ACK batch batchIdList:Q801-3",
|
|
"True",
|
|
"False",
|
|
"True"
|
|
],
|
|
[
|
|
"Q802 warehouse event record 0 ACK batch batchIdList:Q802-0",
|
|
"True",
|
|
"False",
|
|
"True"
|
|
],
|
|
[
|
|
"Q801 warehouse event record 4",
|
|
"True",
|
|
"False",
|
|
"False"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q802",
|
|
"sql": "SELECT SUM(CASE WHEN match_all('warehouse') THEN 1 ELSE 0 END) AS wh_hits, SUM(CASE WHEN match_all('error') THEN 1 ELSE 0 END) AS error_hits, SUM(CASE WHEN match_all('ACK batch') THEN 1 ELSE 0 END) AS ack_hits FROM \"{stream}\"",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48059000000,
|
|
"end_offset": 48133000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"wh_hits",
|
|
"error_hits",
|
|
"ack_hits"
|
|
],
|
|
"results": [
|
|
[
|
|
"7",
|
|
"0",
|
|
"3"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q803",
|
|
"sql": "SELECT _timestamp, log, exception_message FROM \"{stream}\" WHERE match_all('warehouse') AND re_match(exception_message, 'NullPointer|Timeout') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48119000000,
|
|
"end_offset": 48193000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"exception_message"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q803 warehouse event record 0 ACK batch batchIdList:Q803-0",
|
|
"NullPointerException at ConveyorController.handle()"
|
|
],
|
|
[
|
|
"Q802 warehouse event record 4",
|
|
"TimeoutException: lane LANE-A did not respond within 5000ms"
|
|
],
|
|
[
|
|
"Q803 warehouse event record 1",
|
|
"TimeoutException: lane LANE-A did not respond within 5000ms"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q804",
|
|
"sql": "SELECT _timestamp, log_message, component_name FROM \"{stream}\" WHERE match_all('warehouse') AND str_match_ignore_case(log_message, 'error') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48179000000,
|
|
"end_offset": 48253000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log_message",
|
|
"component_name"
|
|
],
|
|
"results": [
|
|
[
|
|
"ERROR: scan_attempts exhausted for pallet_id=PL-007",
|
|
"lane-monitor"
|
|
],
|
|
[
|
|
"ERROR: scan_attempts exhausted for pallet_id=PL-007",
|
|
"lane-monitor"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q805",
|
|
"sql": "SELECT operation_mode, COUNT(*) AS cnt, APPROX_DISTINCT(component_name) AS distinct_components FROM \"{stream}\" WHERE match_all('warehouse') GROUP BY operation_mode HAVING COUNT(*) > 0 ORDER BY cnt DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48239000000,
|
|
"end_offset": 48313000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"operation_mode",
|
|
"cnt",
|
|
"distinct_components"
|
|
],
|
|
"results": [
|
|
[
|
|
"auto",
|
|
"3",
|
|
"3"
|
|
],
|
|
[
|
|
"hybrid",
|
|
"2",
|
|
"2"
|
|
],
|
|
[
|
|
"manual",
|
|
"2",
|
|
"2"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q806",
|
|
"sql": "SELECT region_code, scan_category, COUNT(*) AS fts_hits FROM \"{stream}\" WHERE match_all('warehouse') AND region_code IS NOT NULL GROUP BY region_code, scan_category ORDER BY fts_hits DESC LIMIT 12",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48299000000,
|
|
"end_offset": 48373000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"region_code",
|
|
"scan_category",
|
|
"fts_hits"
|
|
],
|
|
"results": [
|
|
[
|
|
"US-EAST",
|
|
"inbound",
|
|
"2"
|
|
],
|
|
[
|
|
"EU-WEST",
|
|
"outbound",
|
|
"2"
|
|
],
|
|
[
|
|
"EU-NORTH",
|
|
"internal",
|
|
"1"
|
|
],
|
|
[
|
|
"US-WEST",
|
|
"inbound",
|
|
"1"
|
|
],
|
|
[
|
|
"AP-CENTRAL",
|
|
"internal",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q807",
|
|
"sql": "SELECT component_name, SUM(CASE WHEN match_all('warehouse') THEN 1 ELSE 0 END) AS wh_cnt, SUM(CASE WHEN re_match(exception_message, 'NullPointer|Timeout') THEN 1 ELSE 0 END) AS error_cnt, COUNT(*) AS total, RANK() OVER (ORDER BY COUNT(*) DESC) AS total_rank FROM \"{stream}\" GROUP BY component_name ORDER BY total_rank LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48359000000,
|
|
"end_offset": 48433000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"component_name",
|
|
"wh_cnt",
|
|
"error_cnt",
|
|
"total",
|
|
"total_rank"
|
|
],
|
|
"results": [
|
|
[
|
|
"pallet-mapper",
|
|
"2",
|
|
"0",
|
|
"2",
|
|
"1"
|
|
],
|
|
[
|
|
"track-router",
|
|
"2",
|
|
"0",
|
|
"2",
|
|
"1"
|
|
],
|
|
[
|
|
"scan-hub",
|
|
"1",
|
|
"0",
|
|
"1",
|
|
"3"
|
|
],
|
|
[
|
|
"batch-sync",
|
|
"1",
|
|
"0",
|
|
"1",
|
|
"3"
|
|
],
|
|
[
|
|
"lane-monitor",
|
|
"1",
|
|
"0",
|
|
"1",
|
|
"3"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q808",
|
|
"sql": "SELECT _timestamp, COALESCE(exception_message, log_message) AS msg FROM \"{stream}\" WHERE match_all('warehouse') AND regexp_like(COALESCE(exception_message, log_message), '.*Exception.*') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48419000000,
|
|
"end_offset": 48493000000
|
|
},
|
|
"expected": {
|
|
"skip_sqllogictest": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q809",
|
|
"sql": "SELECT _timestamp, log, component_name, latency_ms FROM \"{stream}\" WHERE match_all('warehouse') AND latency_ms > 100 ORDER BY latency_ms DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48479000000,
|
|
"end_offset": 48553000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"component_name",
|
|
"latency_ms"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q808 warehouse event record 4",
|
|
"sorter-engine",
|
|
"1900"
|
|
],
|
|
[
|
|
"Q809 warehouse event record 1",
|
|
"sorter-engine",
|
|
"1900"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q810",
|
|
"sql": "SELECT facility_zone, control_center, COUNT(*) AS cnt FROM \"{stream}\" WHERE match_all('warehouse') OR str_match_ignore_case(event_detail, 'batch') GROUP BY facility_zone, control_center HAVING COUNT(*) > 0 ORDER BY cnt DESC LIMIT 12",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48539000000,
|
|
"end_offset": 48613000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"control_center",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"CC-GAMMA",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"CC-DELTA",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"CC-ALPHA",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"CC-BETA",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q811",
|
|
"sql": "SELECT _timestamp, log, true AS is_match, ROW_NUMBER() OVER (ORDER BY _timestamp) AS seq FROM \"{stream}\" WHERE match_all('warehouse') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48599000000,
|
|
"end_offset": 48673000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log",
|
|
"is_match",
|
|
"seq"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q811 warehouse event record 0 ACK batch batchIdList:Q811-0",
|
|
"True",
|
|
"1"
|
|
],
|
|
[
|
|
"Q810 warehouse event record 4",
|
|
"True",
|
|
"2"
|
|
],
|
|
[
|
|
"Q811 warehouse event record 1",
|
|
"True",
|
|
"3"
|
|
],
|
|
[
|
|
"Q811 warehouse event record 2",
|
|
"True",
|
|
"4"
|
|
],
|
|
[
|
|
"Q811 warehouse event record 3 ACK batch batchIdList:Q811-3",
|
|
"True",
|
|
"5"
|
|
],
|
|
[
|
|
"Q812 warehouse event record 0 ACK batch batchIdList:Q812-0",
|
|
"True",
|
|
"6"
|
|
],
|
|
[
|
|
"Q811 warehouse event record 4",
|
|
"True",
|
|
"7"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q812",
|
|
"sql": "WITH fts_set AS (SELECT _timestamp, component_name, latency_ms, log FROM \"{stream}\" WHERE match_all('warehouse')), non_fts_set AS (SELECT _timestamp, component_name, latency_ms, log FROM \"{stream}\" WHERE NOT match_all('warehouse')) SELECT 'fts' AS source, AVG(CAST(latency_ms AS FLOAT)) AS avg_lat FROM fts_set UNION ALL SELECT 'non_fts' AS source, AVG(CAST(latency_ms AS FLOAT)) AS avg_lat FROM non_fts_set",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48659000000,
|
|
"end_offset": 48733000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"source",
|
|
"avg_lat"
|
|
],
|
|
"results": [
|
|
[
|
|
"fts",
|
|
"756.8571428571429"
|
|
],
|
|
[
|
|
"non_fts",
|
|
"None"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q813",
|
|
"sql": "SELECT facility_zone, COUNT(*) AS fts_join_cnt, AVG(CAST(throughput_rate AS FLOAT)) AS avg_rate FROM \"{stream}\" WHERE match_all('warehouse') GROUP BY facility_zone ORDER BY fts_join_cnt DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48719000000,
|
|
"end_offset": 48793000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"fts_join_cnt",
|
|
"avg_rate"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-3",
|
|
"2",
|
|
"465.0"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"2",
|
|
"437.5"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"2",
|
|
"465.0"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"1",
|
|
"480.0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q814",
|
|
"sql": "SELECT _timestamp, event_detail, ack_detail FROM \"{stream}\" WHERE match_all('batch') AND str_match_ignore_case(event_detail, 'batch') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48779000000,
|
|
"end_offset": 48853000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"event_detail",
|
|
"ack_detail"
|
|
],
|
|
"results": [],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q815",
|
|
"sql": "SELECT COALESCE(scan_category, 'unknown') AS scan_type, COUNT(*) AS cnt FROM \"{stream}\" WHERE match_all('warehouse') OR LOWER(COALESCE(exception_message, '')) LIKE '%exception%' GROUP BY scan_type ORDER BY cnt DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48839000000,
|
|
"end_offset": 48913000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"scan_type",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"internal",
|
|
"3"
|
|
],
|
|
[
|
|
"inbound",
|
|
"3"
|
|
],
|
|
[
|
|
"outbound",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q816",
|
|
"sql": "SELECT _timestamp, log_message, COALESCE(match_all('error'), FALSE) AS has_error FROM \"{stream}\" ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48899000000,
|
|
"end_offset": 48973000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"log_message",
|
|
"has_error"
|
|
],
|
|
"results": [
|
|
[
|
|
"POST /api/v2/sorter/scan 201 Created",
|
|
"False"
|
|
],
|
|
[
|
|
"INFO: batch sync completed, url=http://warehouse.local/sync",
|
|
"False"
|
|
],
|
|
[
|
|
"INFO: batch sync completed, url=http://warehouse.local/sync",
|
|
"False"
|
|
],
|
|
[
|
|
"WARN: lane jam detected at conveyor_segment=3",
|
|
"False"
|
|
],
|
|
[
|
|
"ERROR: pallet PL-003 mismatch, retry url=https://warehouse.local/retry",
|
|
"False"
|
|
],
|
|
[
|
|
"ERROR: pallet PL-003 mismatch, retry url=https://warehouse.local/retry",
|
|
"False"
|
|
],
|
|
[
|
|
"DEBUG: charge_remaining below threshold 15.0",
|
|
"False"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q817",
|
|
"sql": "SELECT component_name, region_code, COUNT(*) FILTER (WHERE match_all('warehouse')) AS wh_hits, COUNT(*) FILTER (WHERE match_all('error')) AS error_hits FROM \"{stream}\" GROUP BY component_name, region_code ORDER BY wh_hits DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 48959000000,
|
|
"end_offset": 49033000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"component_name",
|
|
"region_code",
|
|
"wh_hits",
|
|
"error_hits"
|
|
],
|
|
"results": [
|
|
[
|
|
"pallet-mapper",
|
|
"AP-EAST",
|
|
"2",
|
|
"0"
|
|
],
|
|
[
|
|
"track-router",
|
|
"EU-NORTH",
|
|
"2",
|
|
"0"
|
|
],
|
|
[
|
|
"batch-sync",
|
|
"AP-SOUTH",
|
|
"1",
|
|
"0"
|
|
],
|
|
[
|
|
"lane-monitor",
|
|
"SA-EAST",
|
|
"1",
|
|
"0"
|
|
],
|
|
[
|
|
"scan-hub",
|
|
"EU-WEST",
|
|
"1",
|
|
"0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q818",
|
|
"sql": "SELECT org_name, SUM(CASE WHEN match_all('warehouse') THEN 1 ELSE 0 END) AS a_fts FROM \"{stream}\" GROUP BY org_name ORDER BY a_fts DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 49019000000,
|
|
"end_offset": 49093000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"org_name",
|
|
"a_fts"
|
|
],
|
|
"results": [
|
|
[
|
|
"warehouse-north",
|
|
"2"
|
|
],
|
|
[
|
|
"warehouse-central",
|
|
"2"
|
|
],
|
|
[
|
|
"warehouse-west",
|
|
"1"
|
|
],
|
|
[
|
|
"warehouse-east",
|
|
"1"
|
|
],
|
|
[
|
|
"warehouse-south",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q819",
|
|
"sql": "SELECT _timestamp, COALESCE(exception_message, log_message, log) AS text_field, match_all('warehouse') AS hits_wh FROM \"{stream}\" WHERE match_all('warehouse') ORDER BY _timestamp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 49079000000,
|
|
"end_offset": 49153000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"text_field",
|
|
"hits_wh"
|
|
],
|
|
"results": [
|
|
[
|
|
"StateTransitionException: operation_mode hybrid invalid state",
|
|
"True"
|
|
],
|
|
[
|
|
"OverflowException: throughput_rate 999.0 exceeds max capacity",
|
|
"True"
|
|
],
|
|
[
|
|
"OverflowException: throughput_rate 999.0 exceeds max capacity",
|
|
"True"
|
|
],
|
|
[
|
|
"NullPointerException at ConveyorController.handle()",
|
|
"True"
|
|
],
|
|
[
|
|
"TimeoutException: lane LANE-A did not respond within 5000ms",
|
|
"True"
|
|
],
|
|
[
|
|
"TimeoutException: lane LANE-A did not respond within 5000ms",
|
|
"True"
|
|
],
|
|
[
|
|
"DataIntegrityException: pallet_id PL-002 checksum mismatch",
|
|
"True"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
}
|
|
},
|
|
{
|
|
"id": "Q820",
|
|
"sql": "SELECT tag_b, COUNT(*) AS cnt, SUM(CASE WHEN re_match(COALESCE(exception_message, ''), 'NullPointer|Timeout|Security') THEN 1 ELSE 0 END) AS matched_errors FROM \"{stream}\" WHERE match_all('warehouse') OR LENGTH(COALESCE(exception_message, '')) > 10 GROUP BY tag_b ORDER BY cnt DESC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 49139000000,
|
|
"end_offset": 49213000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"tag_b",
|
|
"cnt",
|
|
"matched_errors"
|
|
],
|
|
"results": [
|
|
[
|
|
"critical",
|
|
"4",
|
|
"2"
|
|
],
|
|
[
|
|
"high",
|
|
"2",
|
|
"0"
|
|
],
|
|
[
|
|
"low",
|
|
"1",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q821",
|
|
"sql": "WITH fts_data AS (SELECT _timestamp, facility_zone, throughput_rate, component_name FROM \"{stream}\" WHERE match_all('warehouse')) SELECT facility_zone, MAX(throughput_rate) AS peak_rate, APPROX_DISTINCT(component_name) AS distinct_comps FROM fts_data GROUP BY facility_zone ORDER BY peak_rate DESC",
|
|
"category": "full_text_search",
|
|
"time_offset": {
|
|
"start_offset": 49199000000,
|
|
"end_offset": 49273000000
|
|
},
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"peak_rate",
|
|
"distinct_comps"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-3",
|
|
"840.0",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"840.0",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"725.0",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"290.0",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1001",
|
|
"sql": "WITH parsed AS (SELECT trim(log) AS api FROM \"{stream}\" WHERE resource_path LIKE '%/logs/warehouse/%' AND match_all('warehouse')) SELECT api FROM parsed WHERE api IS NOT NULL AND api LIKE 'Q%' ORDER BY api ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"api"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q001 warehouse event record 3 ACK batch batchIdList:Q001-3"
|
|
],
|
|
[
|
|
"Q001 warehouse event record 4"
|
|
],
|
|
[
|
|
"Q002 warehouse event record 0 ACK batch batchIdList:Q002-0"
|
|
],
|
|
[
|
|
"Q003 warehouse event record 1"
|
|
],
|
|
[
|
|
"Q003 warehouse event record 4"
|
|
],
|
|
[
|
|
"Q004 warehouse event record 1"
|
|
],
|
|
[
|
|
"Q005 warehouse event record 2"
|
|
],
|
|
[
|
|
"Q007 warehouse event record 2"
|
|
],
|
|
[
|
|
"Q008 warehouse event record 2"
|
|
],
|
|
[
|
|
"Q009 warehouse event record 0 ACK batch batchIdList:Q009-0"
|
|
],
|
|
[
|
|
"Q009 warehouse event record 3 ACK batch batchIdList:Q009-3"
|
|
],
|
|
[
|
|
"Q010 warehouse event record 0 ACK batch batchIdList:Q010-0"
|
|
],
|
|
[
|
|
"Q011 warehouse event record 3 ACK batch batchIdList:Q011-3"
|
|
],
|
|
[
|
|
"Q011 warehouse event record 4"
|
|
],
|
|
[
|
|
"Q012 warehouse event record 0 ACK batch batchIdList:Q012-0"
|
|
],
|
|
[
|
|
"Q013 warehouse event record 1"
|
|
],
|
|
[
|
|
"Q013 warehouse event record 4"
|
|
],
|
|
[
|
|
"Q014 warehouse event record 1"
|
|
],
|
|
[
|
|
"Q015 warehouse event record 2"
|
|
],
|
|
[
|
|
"Q017 warehouse event record 2"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1002",
|
|
"sql": "WITH filtered AS (SELECT http_method, split_part(page_url, '?', 1) AS raw_url_no_query FROM \"{stream}\" WHERE resource_path LIKE '%/logs/warehouse/%' AND match_all('warehouse') AND page_url LIKE '%shop.example.com/%'), in_shop AS (SELECT http_method, CASE WHEN raw_url_no_query LIKE '%shop.example.com/%' THEN '/' || split_part(raw_url_no_query, 'shop.example.com/', 2) ELSE NULL END AS api_path FROM filtered), scoped AS (SELECT http_method, api_path FROM in_shop WHERE api_path IS NOT NULL AND (api_path LIKE '/item/%' OR api_path LIKE '/search%' OR api_path LIKE '/cart%')), normalized AS (SELECT http_method, regexp_replace(regexp_replace(api_path, '/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}', '/{id}'), '/[0-9]+', '/{id}') AS api FROM scoped), cleaned AS (SELECT http_method, regexp_replace(regexp_replace(api, '//', '/'), '//', '/') AS api FROM normalized) SELECT http_method, api, COUNT(*) AS hit_count FROM cleaned GROUP BY http_method, api ORDER BY hit_count DESC, http_method ASC, api ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"http_method",
|
|
"api",
|
|
"hit_count"
|
|
],
|
|
"results": [
|
|
[
|
|
"DELETE",
|
|
"/item/{id}",
|
|
"30"
|
|
],
|
|
[
|
|
"POST",
|
|
"/item/{id}",
|
|
"30"
|
|
],
|
|
[
|
|
"PUT",
|
|
"/item/{id}",
|
|
"30"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1003",
|
|
"sql": "SELECT http_method, COUNT(*) AS n FROM (SELECT http_method FROM \"{stream}\" WHERE match_all('warehouse') AND resource_path LIKE '%/logs/warehouse/%') s GROUP BY http_method ORDER BY n DESC, http_method ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"http_method",
|
|
"n"
|
|
],
|
|
"results": [
|
|
[
|
|
"PUT",
|
|
"60"
|
|
],
|
|
[
|
|
"DELETE",
|
|
"30"
|
|
],
|
|
[
|
|
"POST",
|
|
"30"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1004",
|
|
"sql": "SELECT facility_zone, cnt FROM (SELECT facility_zone, COUNT(*) AS cnt FROM \"{stream}\" WHERE match_all('event') GROUP BY facility_zone) s WHERE cnt > 1 ORDER BY cnt DESC, facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"126"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"124"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1005",
|
|
"sql": "SELECT tag_a, COUNT(*) AS n FROM (SELECT tag_a FROM \"{stream}\" WHERE match_all('warehouse') AND log_message LIKE '%warehouse%') s GROUP BY tag_a ORDER BY n DESC, tag_a ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"tag_a",
|
|
"n"
|
|
],
|
|
"results": [
|
|
[
|
|
"prod",
|
|
"100"
|
|
],
|
|
[
|
|
"staging",
|
|
"100"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1006",
|
|
"sql": "SELECT component_name, avg_lat FROM (SELECT component_name, AVG(CAST(latency_ms AS FLOAT)) AS avg_lat FROM \"{stream}\" WHERE match_all('warehouse') GROUP BY component_name) s ORDER BY avg_lat DESC, component_name ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"component_name",
|
|
"avg_lat"
|
|
],
|
|
"results": [
|
|
[
|
|
"temp-regulator",
|
|
"3200.0"
|
|
],
|
|
[
|
|
"sorter-engine",
|
|
"1900.0"
|
|
],
|
|
[
|
|
"batch-sync",
|
|
"1450.0"
|
|
],
|
|
[
|
|
"lane-monitor",
|
|
"567.0"
|
|
],
|
|
[
|
|
"track-router",
|
|
"230.0"
|
|
],
|
|
[
|
|
"pallet-mapper",
|
|
"89.0"
|
|
],
|
|
[
|
|
"charge-checker",
|
|
"78.0"
|
|
],
|
|
[
|
|
"scan-hub",
|
|
"45.0"
|
|
],
|
|
[
|
|
"conveyor-driver",
|
|
"15.0"
|
|
],
|
|
[
|
|
"zone-controller",
|
|
"12.0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1007",
|
|
"sql": "SELECT region_code, COUNT(*) AS c FROM (SELECT region_code FROM \"{stream}\" WHERE match_all('record') AND resource_path LIKE '%warehouse%') s GROUP BY region_code ORDER BY c DESC, region_code ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"region_code",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"AP-SOUTH",
|
|
"30"
|
|
],
|
|
[
|
|
"EU-CENTRAL",
|
|
"30"
|
|
],
|
|
[
|
|
"US-CENTRAL",
|
|
"30"
|
|
],
|
|
[
|
|
"US-WEST",
|
|
"30"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1008",
|
|
"sql": "SELECT scan_category, COUNT(DISTINCT task_id) AS unique_tasks FROM (SELECT scan_category, task_id FROM \"{stream}\" WHERE match_all('warehouse')) s GROUP BY scan_category ORDER BY unique_tasks DESC, scan_category ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"scan_category",
|
|
"unique_tasks"
|
|
],
|
|
"results": [
|
|
[
|
|
"inbound",
|
|
"4"
|
|
],
|
|
[
|
|
"internal",
|
|
"3"
|
|
],
|
|
[
|
|
"outbound",
|
|
"3"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1009",
|
|
"sql": "SELECT sorter_model, SUM(throughput_rate) AS total FROM (SELECT sorter_model, throughput_rate FROM \"{stream}\" WHERE match_all('event') AND throughput_rate IS NOT NULL) s GROUP BY sorter_model ORDER BY total DESC, sorter_model ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"sorter_model",
|
|
"total"
|
|
],
|
|
"results": [
|
|
[
|
|
"SORT-M3",
|
|
"80625.0"
|
|
],
|
|
[
|
|
"SORT-X1",
|
|
"79785.0"
|
|
],
|
|
[
|
|
"SORT-A7",
|
|
"46600.0"
|
|
],
|
|
[
|
|
"SORT-Z9",
|
|
"23060.0"
|
|
],
|
|
[
|
|
"SORT-Q5",
|
|
"22815.0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1010",
|
|
"sql": "SELECT operation_mode, COUNT(*) AS cnt FROM (SELECT operation_mode FROM \"{stream}\" WHERE match_all('ACK') AND log LIKE '%batch%') s GROUP BY operation_mode ORDER BY cnt DESC, operation_mode ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"operation_mode",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"manual",
|
|
"77"
|
|
],
|
|
[
|
|
"auto",
|
|
"73"
|
|
],
|
|
[
|
|
"hybrid",
|
|
"51"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1011",
|
|
"sql": "SELECT conveyor_lane, COUNT(*) AS n FROM (SELECT conveyor_lane FROM \"{stream}\" WHERE match_all('warehouse') AND response_code = 200) s GROUP BY conveyor_lane ORDER BY n DESC, conveyor_lane ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"conveyor_lane",
|
|
"n"
|
|
],
|
|
"results": [
|
|
[
|
|
"LANE-A",
|
|
"25"
|
|
],
|
|
[
|
|
"LANE-B",
|
|
"25"
|
|
],
|
|
[
|
|
"LANE-C",
|
|
"25"
|
|
],
|
|
[
|
|
"LANE-D",
|
|
"25"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1012",
|
|
"sql": "SELECT app_label, cnt FROM (SELECT app_label, COUNT(*) AS cnt FROM \"{stream}\" WHERE match_all('event') GROUP BY app_label) s ORDER BY cnt DESC, app_label ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"app_label",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"warehouse-scan",
|
|
"101"
|
|
],
|
|
[
|
|
"warehouse-merge",
|
|
"100"
|
|
],
|
|
[
|
|
"warehouse-sort",
|
|
"100"
|
|
],
|
|
[
|
|
"warehouse-sync",
|
|
"100"
|
|
],
|
|
[
|
|
"warehouse-track",
|
|
"99"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1013",
|
|
"sql": "WITH combined AS (SELECT facility_zone, 'primary' AS src FROM \"{stream}\" WHERE match_all('warehouse') UNION ALL SELECT facility_zone, 'secondary' AS src FROM \"{stream}\" WHERE match_all('event')) SELECT src, facility_zone, COUNT(*) AS cnt FROM combined GROUP BY src, facility_zone ORDER BY cnt DESC, src ASC, facility_zone ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"src",
|
|
"facility_zone",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"primary",
|
|
"ZONE-4",
|
|
"126"
|
|
],
|
|
[
|
|
"secondary",
|
|
"ZONE-4",
|
|
"126"
|
|
],
|
|
[
|
|
"primary",
|
|
"ZONE-1",
|
|
"125"
|
|
],
|
|
[
|
|
"primary",
|
|
"ZONE-2",
|
|
"125"
|
|
],
|
|
[
|
|
"secondary",
|
|
"ZONE-1",
|
|
"125"
|
|
],
|
|
[
|
|
"secondary",
|
|
"ZONE-2",
|
|
"125"
|
|
],
|
|
[
|
|
"primary",
|
|
"ZONE-3",
|
|
"124"
|
|
],
|
|
[
|
|
"secondary",
|
|
"ZONE-3",
|
|
"124"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1014",
|
|
"sql": "WITH branched AS (SELECT facility_zone, 'GET' AS m FROM \"{stream}\" WHERE match_all('warehouse') AND log_message LIKE 'GET %' UNION ALL SELECT facility_zone, 'POST' AS m FROM \"{stream}\" WHERE match_all('warehouse') AND log_message LIKE 'POST %' UNION ALL SELECT facility_zone, 'INFO' AS m FROM \"{stream}\" WHERE match_all('warehouse') AND log_message LIKE 'INFO:%') SELECT m, COUNT(*) AS cnt FROM branched GROUP BY m ORDER BY cnt DESC, m ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"m",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"INFO",
|
|
"151"
|
|
],
|
|
[
|
|
"GET",
|
|
"50"
|
|
],
|
|
[
|
|
"POST",
|
|
"50"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1015",
|
|
"sql": "WITH by_lane AS (SELECT conveyor_lane, 'A' AS bucket FROM \"{stream}\" WHERE match_all('warehouse') AND conveyor_lane = 'LANE-A' UNION ALL SELECT conveyor_lane, 'B' FROM \"{stream}\" WHERE match_all('warehouse') AND conveyor_lane = 'LANE-B' UNION ALL SELECT conveyor_lane, 'C' FROM \"{stream}\" WHERE match_all('warehouse') AND conveyor_lane = 'LANE-C' UNION ALL SELECT conveyor_lane, 'D' FROM \"{stream}\" WHERE match_all('warehouse') AND conveyor_lane = 'LANE-D') SELECT bucket, COUNT(*) AS n FROM by_lane GROUP BY bucket ORDER BY bucket ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"bucket",
|
|
"n"
|
|
],
|
|
"results": [
|
|
[
|
|
"A",
|
|
"126"
|
|
],
|
|
[
|
|
"B",
|
|
"125"
|
|
],
|
|
[
|
|
"C",
|
|
"125"
|
|
],
|
|
[
|
|
"D",
|
|
"124"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1017",
|
|
"sql": "WITH zones AS (SELECT facility_zone, 'z1' AS tier FROM \"{stream}\" WHERE match_all('event') AND facility_zone = 'ZONE-1' UNION ALL SELECT facility_zone, 'z2' FROM \"{stream}\" WHERE match_all('event') AND facility_zone = 'ZONE-2' UNION ALL SELECT facility_zone, 'z3' FROM \"{stream}\" WHERE match_all('event') AND facility_zone = 'ZONE-3') SELECT tier, COUNT(DISTINCT facility_zone) AS uniq FROM zones GROUP BY tier ORDER BY tier ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"tier",
|
|
"uniq"
|
|
],
|
|
"results": [
|
|
[
|
|
"z1",
|
|
"1"
|
|
],
|
|
[
|
|
"z2",
|
|
"1"
|
|
],
|
|
[
|
|
"z3",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1018",
|
|
"sql": "WITH combined AS (SELECT pallet_id, region_code FROM \"{stream}\" WHERE match_all('warehouse') AND pallet_id IS NOT NULL UNION ALL SELECT pallet_id, region_code FROM \"{stream}\" WHERE match_all('event') AND pallet_id IS NOT NULL) SELECT region_code, COUNT(DISTINCT pallet_id) AS uniq FROM combined GROUP BY region_code ORDER BY uniq DESC, region_code ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"region_code",
|
|
"uniq"
|
|
],
|
|
"results": [
|
|
[
|
|
"AP-CENTRAL",
|
|
"4"
|
|
],
|
|
[
|
|
"AP-EAST",
|
|
"4"
|
|
],
|
|
[
|
|
"AP-SOUTH",
|
|
"4"
|
|
],
|
|
[
|
|
"EU-CENTRAL",
|
|
"4"
|
|
],
|
|
[
|
|
"EU-NORTH",
|
|
"4"
|
|
],
|
|
[
|
|
"EU-WEST",
|
|
"4"
|
|
],
|
|
[
|
|
"SA-EAST",
|
|
"4"
|
|
],
|
|
[
|
|
"US-CENTRAL",
|
|
"4"
|
|
],
|
|
[
|
|
"US-EAST",
|
|
"4"
|
|
],
|
|
[
|
|
"US-WEST",
|
|
"4"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1019",
|
|
"sql": "WITH src AS (SELECT http_method, response_code FROM \"{stream}\" WHERE match_all('warehouse') AND http_method = 'GET' UNION ALL SELECT http_method, response_code FROM \"{stream}\" WHERE match_all('warehouse') AND http_method = 'POST' UNION ALL SELECT http_method, response_code FROM \"{stream}\" WHERE match_all('warehouse') AND http_method = 'PUT' UNION ALL SELECT http_method, response_code FROM \"{stream}\" WHERE match_all('warehouse') AND http_method = 'DELETE') SELECT http_method, COUNT(*) AS cnt FROM src GROUP BY http_method ORDER BY cnt DESC, http_method ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"http_method",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"POST",
|
|
"151"
|
|
],
|
|
[
|
|
"GET",
|
|
"149"
|
|
],
|
|
[
|
|
"DELETE",
|
|
"100"
|
|
],
|
|
[
|
|
"PUT",
|
|
"100"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1020",
|
|
"sql": "WITH combined AS (SELECT tag_a, 'p' AS grp FROM \"{stream}\" WHERE match_all('warehouse') AND tag_a = 'prod' UNION ALL SELECT tag_a, 's' FROM \"{stream}\" WHERE match_all('warehouse') AND tag_a = 'staging' UNION ALL SELECT tag_a, 'd' FROM \"{stream}\" WHERE match_all('warehouse') AND tag_a = 'dev') SELECT grp, COUNT(*) AS n FROM combined GROUP BY grp ORDER BY grp ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"grp",
|
|
"n"
|
|
],
|
|
"results": [
|
|
[
|
|
"d",
|
|
"150"
|
|
],
|
|
[
|
|
"p",
|
|
"201"
|
|
],
|
|
[
|
|
"s",
|
|
"149"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1021",
|
|
"sql": "WITH combined AS (SELECT component_name, latency_ms FROM \"{stream}\" WHERE match_all('warehouse') AND latency_ms < 100 UNION ALL SELECT component_name, latency_ms FROM \"{stream}\" WHERE match_all('warehouse') AND latency_ms >= 100 AND latency_ms < 1000 UNION ALL SELECT component_name, latency_ms FROM \"{stream}\" WHERE match_all('warehouse') AND latency_ms >= 1000) SELECT component_name, COUNT(*) AS cnt FROM combined GROUP BY component_name ORDER BY cnt DESC, component_name ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"component_name",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"batch-sync",
|
|
"51"
|
|
],
|
|
[
|
|
"charge-checker",
|
|
"50"
|
|
],
|
|
[
|
|
"conveyor-driver",
|
|
"50"
|
|
],
|
|
[
|
|
"lane-monitor",
|
|
"50"
|
|
],
|
|
[
|
|
"scan-hub",
|
|
"50"
|
|
],
|
|
[
|
|
"sorter-engine",
|
|
"50"
|
|
],
|
|
[
|
|
"temp-regulator",
|
|
"50"
|
|
],
|
|
[
|
|
"track-router",
|
|
"50"
|
|
],
|
|
[
|
|
"zone-controller",
|
|
"50"
|
|
],
|
|
[
|
|
"pallet-mapper",
|
|
"49"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1022",
|
|
"sql": "WITH types AS (SELECT record_type, org_name FROM \"{stream}\" WHERE match_all('warehouse') AND record_type = 'scan' UNION ALL SELECT record_type, org_name FROM \"{stream}\" WHERE match_all('warehouse') AND record_type = 'sort' UNION ALL SELECT record_type, org_name FROM \"{stream}\" WHERE match_all('warehouse') AND record_type = 'merge' UNION ALL SELECT record_type, org_name FROM \"{stream}\" WHERE match_all('warehouse') AND record_type = 'track') SELECT record_type, COUNT(DISTINCT org_name) AS orgs FROM types GROUP BY record_type ORDER BY orgs DESC, record_type ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"record_type",
|
|
"orgs"
|
|
],
|
|
"results": [
|
|
[
|
|
"scan",
|
|
"3"
|
|
],
|
|
[
|
|
"sort",
|
|
"3"
|
|
],
|
|
[
|
|
"merge",
|
|
"2"
|
|
],
|
|
[
|
|
"track",
|
|
"2"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1023",
|
|
"sql": "WITH stmts AS (SELECT filter_result FROM \"{stream}\" WHERE match_all('warehouse') AND filter_result = 'allow' UNION ALL SELECT filter_result FROM \"{stream}\" WHERE match_all('event') AND filter_result = 'block' UNION ALL SELECT filter_result FROM \"{stream}\" WHERE match_all('record') AND filter_result IS NOT NULL) SELECT filter_result, COUNT(*) AS cnt FROM stmts GROUP BY filter_result ORDER BY cnt DESC, filter_result ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"filter_result",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"allow",
|
|
"602"
|
|
],
|
|
[
|
|
"block",
|
|
"398"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1024",
|
|
"sql": "WITH src AS (SELECT guard_mode FROM \"{stream}\" WHERE match_all('warehouse') AND guard_mode = 'active' UNION ALL SELECT guard_mode FROM \"{stream}\" WHERE match_all('warehouse') AND guard_mode = 'passive' UNION ALL SELECT guard_mode FROM \"{stream}\" WHERE match_all('warehouse') AND guard_mode = 'disabled') SELECT guard_mode, COUNT(*) AS cnt FROM src GROUP BY guard_mode ORDER BY cnt DESC, guard_mode ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"guard_mode",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"passive",
|
|
"200"
|
|
],
|
|
[
|
|
"active",
|
|
"199"
|
|
],
|
|
[
|
|
"disabled",
|
|
"101"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1025",
|
|
"sql": "WITH src AS (SELECT auth_result FROM \"{stream}\" WHERE match_all('warehouse') AND auth_result = 'pass' UNION ALL SELECT auth_result FROM \"{stream}\" WHERE match_all('event') AND auth_result = 'fail' UNION ALL SELECT auth_result FROM \"{stream}\" WHERE match_all('warehouse') AND auth_result = 'denied') SELECT auth_result, COUNT(*) AS n FROM src GROUP BY auth_result ORDER BY n DESC, auth_result ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"auth_result",
|
|
"n"
|
|
],
|
|
"results": [
|
|
[
|
|
"pass",
|
|
"251"
|
|
],
|
|
[
|
|
"fail",
|
|
"149"
|
|
],
|
|
[
|
|
"denied",
|
|
"100"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1026",
|
|
"sql": "WITH branches AS (SELECT issue_type FROM \"{stream}\" WHERE match_all('warehouse') AND issue_type = 'timeout' UNION ALL SELECT issue_type FROM \"{stream}\" WHERE match_all('warehouse') AND issue_type = 'overflow' UNION ALL SELECT issue_type FROM \"{stream}\" WHERE match_all('warehouse') AND issue_type = 'mismatch' UNION ALL SELECT issue_type FROM \"{stream}\" WHERE match_all('warehouse') AND issue_type = 'jam') SELECT issue_type, COUNT(*) AS cnt FROM branches GROUP BY issue_type ORDER BY cnt DESC, issue_type ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"issue_type",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"timeout",
|
|
"151"
|
|
],
|
|
[
|
|
"overflow",
|
|
"149"
|
|
],
|
|
[
|
|
"jam",
|
|
"100"
|
|
],
|
|
[
|
|
"mismatch",
|
|
"100"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1027",
|
|
"sql": "WITH cats AS (SELECT scan_category, entity_id FROM \"{stream}\" WHERE match_all('warehouse') AND scan_category = 'inbound' UNION ALL SELECT scan_category, entity_id FROM \"{stream}\" WHERE match_all('warehouse') AND scan_category = 'outbound' UNION ALL SELECT scan_category, entity_id FROM \"{stream}\" WHERE match_all('warehouse') AND scan_category = 'internal') SELECT scan_category, COUNT(DISTINCT entity_id) AS uniq FROM cats GROUP BY scan_category ORDER BY uniq DESC, scan_category ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"scan_category",
|
|
"uniq"
|
|
],
|
|
"results": [
|
|
[
|
|
"inbound",
|
|
"4"
|
|
],
|
|
[
|
|
"internal",
|
|
"3"
|
|
],
|
|
[
|
|
"outbound",
|
|
"3"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1028",
|
|
"sql": "WITH extracted AS (SELECT upper(log) AS msg FROM \"{stream}\" WHERE resource_path LIKE '%/logs/warehouse/%' AND match_all('warehouse')) SELECT msg FROM extracted WHERE msg LIKE 'Q%' ORDER BY msg ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"msg"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q001 WAREHOUSE EVENT RECORD 3 ACK BATCH BATCHIDLIST:Q001-3"
|
|
],
|
|
[
|
|
"Q001 WAREHOUSE EVENT RECORD 4"
|
|
],
|
|
[
|
|
"Q002 WAREHOUSE EVENT RECORD 0 ACK BATCH BATCHIDLIST:Q002-0"
|
|
],
|
|
[
|
|
"Q003 WAREHOUSE EVENT RECORD 1"
|
|
],
|
|
[
|
|
"Q003 WAREHOUSE EVENT RECORD 4"
|
|
],
|
|
[
|
|
"Q004 WAREHOUSE EVENT RECORD 1"
|
|
],
|
|
[
|
|
"Q005 WAREHOUSE EVENT RECORD 2"
|
|
],
|
|
[
|
|
"Q007 WAREHOUSE EVENT RECORD 2"
|
|
],
|
|
[
|
|
"Q008 WAREHOUSE EVENT RECORD 2"
|
|
],
|
|
[
|
|
"Q009 WAREHOUSE EVENT RECORD 0 ACK BATCH BATCHIDLIST:Q009-0"
|
|
],
|
|
[
|
|
"Q009 WAREHOUSE EVENT RECORD 3 ACK BATCH BATCHIDLIST:Q009-3"
|
|
],
|
|
[
|
|
"Q010 WAREHOUSE EVENT RECORD 0 ACK BATCH BATCHIDLIST:Q010-0"
|
|
],
|
|
[
|
|
"Q011 WAREHOUSE EVENT RECORD 3 ACK BATCH BATCHIDLIST:Q011-3"
|
|
],
|
|
[
|
|
"Q011 WAREHOUSE EVENT RECORD 4"
|
|
],
|
|
[
|
|
"Q012 WAREHOUSE EVENT RECORD 0 ACK BATCH BATCHIDLIST:Q012-0"
|
|
],
|
|
[
|
|
"Q013 WAREHOUSE EVENT RECORD 1"
|
|
],
|
|
[
|
|
"Q013 WAREHOUSE EVENT RECORD 4"
|
|
],
|
|
[
|
|
"Q014 WAREHOUSE EVENT RECORD 1"
|
|
],
|
|
[
|
|
"Q015 WAREHOUSE EVENT RECORD 2"
|
|
],
|
|
[
|
|
"Q017 WAREHOUSE EVENT RECORD 2"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1029",
|
|
"sql": "WITH extracted AS (SELECT trim(log_message) AS m FROM \"{stream}\" WHERE resource_path LIKE '%/logs/%' AND match_all('warehouse')) SELECT m FROM extracted WHERE m IS NOT NULL AND m LIKE '%warehouse%' ORDER BY m ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"m"
|
|
],
|
|
"results": [
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
],
|
|
[
|
|
"GET /api/v1/warehouse/status 200 OK"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1030",
|
|
"sql": "WITH parts AS (SELECT split_part(log, ' ', 1) AS first_token FROM \"{stream}\" WHERE match_all('warehouse') AND log IS NOT NULL) SELECT first_token, COUNT(*) AS c FROM parts GROUP BY first_token ORDER BY c DESC, first_token ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"first_token",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q001",
|
|
"5"
|
|
],
|
|
[
|
|
"Q002",
|
|
"5"
|
|
],
|
|
[
|
|
"Q003",
|
|
"5"
|
|
],
|
|
[
|
|
"Q004",
|
|
"5"
|
|
],
|
|
[
|
|
"Q005",
|
|
"5"
|
|
],
|
|
[
|
|
"Q006",
|
|
"5"
|
|
],
|
|
[
|
|
"Q007",
|
|
"5"
|
|
],
|
|
[
|
|
"Q008",
|
|
"5"
|
|
],
|
|
[
|
|
"Q009",
|
|
"5"
|
|
],
|
|
[
|
|
"Q010",
|
|
"5"
|
|
],
|
|
[
|
|
"Q011",
|
|
"5"
|
|
],
|
|
[
|
|
"Q012",
|
|
"5"
|
|
],
|
|
[
|
|
"Q013",
|
|
"5"
|
|
],
|
|
[
|
|
"Q014",
|
|
"5"
|
|
],
|
|
[
|
|
"Q015",
|
|
"5"
|
|
],
|
|
[
|
|
"Q016",
|
|
"5"
|
|
],
|
|
[
|
|
"Q017",
|
|
"5"
|
|
],
|
|
[
|
|
"Q018",
|
|
"5"
|
|
],
|
|
[
|
|
"Q019",
|
|
"5"
|
|
],
|
|
[
|
|
"Q020",
|
|
"5"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1031",
|
|
"sql": "WITH lower_log AS (SELECT lower(log) AS l FROM \"{stream}\" WHERE match_all('warehouse') AND resource_path LIKE '%/warehouse/%') SELECT l FROM lower_log WHERE l LIKE '%event%' ORDER BY l ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"l"
|
|
],
|
|
"results": [
|
|
[
|
|
"q001 warehouse event record 3 ack batch batchidlist:q001-3"
|
|
],
|
|
[
|
|
"q001 warehouse event record 4"
|
|
],
|
|
[
|
|
"q002 warehouse event record 0 ack batch batchidlist:q002-0"
|
|
],
|
|
[
|
|
"q003 warehouse event record 1"
|
|
],
|
|
[
|
|
"q003 warehouse event record 4"
|
|
],
|
|
[
|
|
"q004 warehouse event record 1"
|
|
],
|
|
[
|
|
"q005 warehouse event record 2"
|
|
],
|
|
[
|
|
"q007 warehouse event record 2"
|
|
],
|
|
[
|
|
"q008 warehouse event record 2"
|
|
],
|
|
[
|
|
"q009 warehouse event record 0 ack batch batchidlist:q009-0"
|
|
],
|
|
[
|
|
"q009 warehouse event record 3 ack batch batchidlist:q009-3"
|
|
],
|
|
[
|
|
"q010 warehouse event record 0 ack batch batchidlist:q010-0"
|
|
],
|
|
[
|
|
"q011 warehouse event record 3 ack batch batchidlist:q011-3"
|
|
],
|
|
[
|
|
"q011 warehouse event record 4"
|
|
],
|
|
[
|
|
"q012 warehouse event record 0 ack batch batchidlist:q012-0"
|
|
],
|
|
[
|
|
"q013 warehouse event record 1"
|
|
],
|
|
[
|
|
"q013 warehouse event record 4"
|
|
],
|
|
[
|
|
"q014 warehouse event record 1"
|
|
],
|
|
[
|
|
"q015 warehouse event record 2"
|
|
],
|
|
[
|
|
"q017 warehouse event record 2"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1032",
|
|
"sql": "WITH sub AS (SELECT substring(log, 1, 8) AS prefix FROM \"{stream}\" WHERE match_all('warehouse')) SELECT prefix, COUNT(*) AS c FROM sub GROUP BY prefix ORDER BY c DESC, prefix ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"prefix",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"Q001 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q002 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q003 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q004 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q005 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q006 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q007 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q008 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q009 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q010 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q011 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q012 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q013 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q014 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q015 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q016 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q017 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q018 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q019 war",
|
|
"5"
|
|
],
|
|
[
|
|
"Q020 war",
|
|
"5"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1033",
|
|
"sql": "WITH parsed AS (SELECT trim(log) AS api, http_method FROM \"{stream}\" WHERE resource_path LIKE '%/logs/warehouse/%' AND match_all('warehouse')) SELECT http_method, COUNT(*) AS c FROM parsed WHERE api LIKE 'Q%' GROUP BY http_method ORDER BY c DESC, http_method ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"http_method",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"PUT",
|
|
"60"
|
|
],
|
|
[
|
|
"DELETE",
|
|
"30"
|
|
],
|
|
[
|
|
"POST",
|
|
"30"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1034",
|
|
"sql": "WITH extracted AS (SELECT concat(http_method, ':', trim(log)) AS composite FROM \"{stream}\" WHERE match_all('warehouse') AND http_method IS NOT NULL) SELECT composite FROM extracted WHERE composite LIKE '%warehouse%' ORDER BY composite ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"composite"
|
|
],
|
|
"results": [
|
|
[
|
|
"DELETE:Q001 warehouse event record 4"
|
|
],
|
|
[
|
|
"DELETE:Q002 warehouse event record 1"
|
|
],
|
|
[
|
|
"DELETE:Q003 warehouse event record 2"
|
|
],
|
|
[
|
|
"DELETE:Q005 warehouse event record 2"
|
|
],
|
|
[
|
|
"DELETE:Q006 warehouse event record 3 ACK batch batchIdList:Q006-3"
|
|
],
|
|
[
|
|
"DELETE:Q007 warehouse event record 0 ACK batch batchIdList:Q007-0"
|
|
],
|
|
[
|
|
"DELETE:Q008 warehouse event record 3 ACK batch batchIdList:Q008-3"
|
|
],
|
|
[
|
|
"DELETE:Q009 warehouse event record 0 ACK batch batchIdList:Q009-0"
|
|
],
|
|
[
|
|
"DELETE:Q009 warehouse event record 4"
|
|
],
|
|
[
|
|
"DELETE:Q010 warehouse event record 1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1035",
|
|
"sql": "WITH built AS (SELECT length(log) AS log_len, facility_zone FROM \"{stream}\" WHERE match_all('warehouse') AND facility_zone IS NOT NULL) SELECT facility_zone, AVG(CAST(log_len AS FLOAT)) AS avg_len FROM built GROUP BY facility_zone ORDER BY avg_len DESC, facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"avg_len"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"40.73809523809524"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"40.693548387096776"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"40.6"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"40.6"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1036",
|
|
"sql": "WITH tokenized AS (SELECT split_part(log, ' ', 2) AS token FROM \"{stream}\" WHERE match_all('event') AND log LIKE 'Q%') SELECT token, COUNT(*) AS n FROM tokenized GROUP BY token ORDER BY n DESC, token ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"token",
|
|
"n"
|
|
],
|
|
"results": [
|
|
[
|
|
"warehouse",
|
|
"500"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1037",
|
|
"sql": "WITH replaced AS (SELECT regexp_replace(log, 'Q[0-9]+', 'QID') AS masked FROM \"{stream}\" WHERE match_all('warehouse')) SELECT masked, COUNT(*) AS c FROM replaced GROUP BY masked ORDER BY c DESC, masked ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"masked",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"QID warehouse event record 1",
|
|
"100"
|
|
],
|
|
[
|
|
"QID warehouse event record 2",
|
|
"100"
|
|
],
|
|
[
|
|
"QID warehouse event record 4",
|
|
"99"
|
|
],
|
|
[
|
|
"QID warehouse event record 0 ACK batch batchIdList:Q001-0",
|
|
"1"
|
|
],
|
|
[
|
|
"QID warehouse event record 0 ACK batch batchIdList:Q002-0",
|
|
"1"
|
|
],
|
|
[
|
|
"QID warehouse event record 0 ACK batch batchIdList:Q003-0",
|
|
"1"
|
|
],
|
|
[
|
|
"QID warehouse event record 0 ACK batch batchIdList:Q004-0",
|
|
"1"
|
|
],
|
|
[
|
|
"QID warehouse event record 0 ACK batch batchIdList:Q005-0",
|
|
"1"
|
|
],
|
|
[
|
|
"QID warehouse event record 0 ACK batch batchIdList:Q006-0",
|
|
"1"
|
|
],
|
|
[
|
|
"QID warehouse event record 0 ACK batch batchIdList:Q007-0",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1038",
|
|
"sql": "WITH raw_hits AS (SELECT facility_zone, log, http_method FROM \"{stream}\" WHERE match_all('warehouse')), filtered AS (SELECT facility_zone, http_method FROM raw_hits WHERE log LIKE 'Q%'), grouped AS (SELECT facility_zone, COUNT(*) AS c FROM filtered GROUP BY facility_zone) SELECT facility_zone, c FROM grouped ORDER BY c DESC, facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"126"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"124"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1039",
|
|
"sql": "WITH s1 AS (SELECT tag_a, log FROM \"{stream}\" WHERE match_all('warehouse')), s2 AS (SELECT tag_a FROM s1 WHERE log LIKE '%warehouse%'), s3 AS (SELECT tag_a, COUNT(*) AS n FROM s2 GROUP BY tag_a) SELECT tag_a, n FROM s3 ORDER BY n DESC, tag_a ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"tag_a",
|
|
"n"
|
|
],
|
|
"results": [
|
|
[
|
|
"prod",
|
|
"201"
|
|
],
|
|
[
|
|
"dev",
|
|
"150"
|
|
],
|
|
[
|
|
"staging",
|
|
"149"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1040",
|
|
"sql": "WITH a AS (SELECT component_name, latency_ms FROM \"{stream}\" WHERE match_all('warehouse')), b AS (SELECT component_name, latency_ms FROM a WHERE latency_ms IS NOT NULL), c AS (SELECT component_name, AVG(CAST(latency_ms AS FLOAT)) AS avg_lat FROM b GROUP BY component_name) SELECT component_name, avg_lat FROM c ORDER BY avg_lat DESC, component_name ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"component_name",
|
|
"avg_lat"
|
|
],
|
|
"results": [
|
|
[
|
|
"temp-regulator",
|
|
"3200.0"
|
|
],
|
|
[
|
|
"sorter-engine",
|
|
"1900.0"
|
|
],
|
|
[
|
|
"batch-sync",
|
|
"1450.0"
|
|
],
|
|
[
|
|
"lane-monitor",
|
|
"567.0"
|
|
],
|
|
[
|
|
"track-router",
|
|
"230.0"
|
|
],
|
|
[
|
|
"pallet-mapper",
|
|
"89.0"
|
|
],
|
|
[
|
|
"charge-checker",
|
|
"78.0"
|
|
],
|
|
[
|
|
"scan-hub",
|
|
"45.0"
|
|
],
|
|
[
|
|
"conveyor-driver",
|
|
"15.0"
|
|
],
|
|
[
|
|
"zone-controller",
|
|
"12.0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1042",
|
|
"sql": "WITH s1 AS (SELECT region_code, org_name, pallet_id FROM \"{stream}\" WHERE match_all('warehouse')), s2 AS (SELECT region_code, org_name, pallet_id FROM s1 WHERE pallet_id IS NOT NULL AND org_name IS NOT NULL) SELECT region_code, COUNT(DISTINCT org_name) AS orgs, COUNT(DISTINCT pallet_id) AS pallets FROM s2 GROUP BY region_code ORDER BY orgs DESC, region_code ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"region_code",
|
|
"orgs",
|
|
"pallets"
|
|
],
|
|
"results": [
|
|
[
|
|
"AP-CENTRAL",
|
|
"1",
|
|
"4"
|
|
],
|
|
[
|
|
"AP-EAST",
|
|
"1",
|
|
"4"
|
|
],
|
|
[
|
|
"AP-SOUTH",
|
|
"1",
|
|
"4"
|
|
],
|
|
[
|
|
"EU-CENTRAL",
|
|
"1",
|
|
"4"
|
|
],
|
|
[
|
|
"EU-NORTH",
|
|
"1",
|
|
"4"
|
|
],
|
|
[
|
|
"EU-WEST",
|
|
"1",
|
|
"4"
|
|
],
|
|
[
|
|
"SA-EAST",
|
|
"1",
|
|
"4"
|
|
],
|
|
[
|
|
"US-CENTRAL",
|
|
"1",
|
|
"4"
|
|
],
|
|
[
|
|
"US-EAST",
|
|
"1",
|
|
"4"
|
|
],
|
|
[
|
|
"US-WEST",
|
|
"1",
|
|
"4"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1043",
|
|
"sql": "WITH hits AS (SELECT sorter_model, throughput_rate, load_factor FROM \"{stream}\" WHERE match_all('event') AND throughput_rate IS NOT NULL), buckets AS (SELECT sorter_model, CASE WHEN load_factor < 50.0 THEN 'low' ELSE 'high' END AS band, throughput_rate FROM hits) SELECT band, sorter_model, AVG(throughput_rate) AS avg_t FROM buckets GROUP BY band, sorter_model ORDER BY avg_t DESC, band ASC, sorter_model ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"band",
|
|
"sorter_model",
|
|
"avg_t"
|
|
],
|
|
"results": [
|
|
[
|
|
"low",
|
|
"SORT-M3",
|
|
"840.0"
|
|
],
|
|
[
|
|
"low",
|
|
"SORT-X1",
|
|
"840.0"
|
|
],
|
|
[
|
|
"high",
|
|
"SORT-M3",
|
|
"596.25"
|
|
],
|
|
[
|
|
"high",
|
|
"SORT-X1",
|
|
"596.25"
|
|
],
|
|
[
|
|
"low",
|
|
"SORT-Q5",
|
|
"463.19444444444446"
|
|
],
|
|
[
|
|
"low",
|
|
"SORT-A7",
|
|
"455.2631578947368"
|
|
],
|
|
[
|
|
"low",
|
|
"SORT-Z9",
|
|
"441.02564102564105"
|
|
],
|
|
[
|
|
"high",
|
|
"SORT-Z9",
|
|
"244.16666666666666"
|
|
],
|
|
[
|
|
"high",
|
|
"SORT-A7",
|
|
"240.0"
|
|
],
|
|
[
|
|
"high",
|
|
"SORT-Q5",
|
|
"236.15384615384616"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1044",
|
|
"sql": "WITH src AS (SELECT log, http_method FROM \"{stream}\" WHERE match_all('warehouse')), trimmed AS (SELECT trim(log) AS m, http_method FROM src), filtered AS (SELECT m, http_method FROM trimmed WHERE m LIKE 'Q%warehouse%') SELECT http_method, COUNT(*) AS c FROM filtered GROUP BY http_method ORDER BY c DESC, http_method ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"http_method",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"POST",
|
|
"151"
|
|
],
|
|
[
|
|
"GET",
|
|
"149"
|
|
],
|
|
[
|
|
"DELETE",
|
|
"100"
|
|
],
|
|
[
|
|
"PUT",
|
|
"100"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1046",
|
|
"sql": "WITH lvl1 AS (SELECT api_name, http_method, latency_ms FROM \"{stream}\" WHERE match_all('warehouse')), lvl2 AS (SELECT api_name, http_method FROM lvl1 WHERE latency_ms > 50) SELECT api_name, http_method, COUNT(*) AS n FROM lvl2 GROUP BY api_name, http_method ORDER BY n DESC, api_name ASC, http_method ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"api_name",
|
|
"http_method",
|
|
"n"
|
|
],
|
|
"results": [
|
|
[
|
|
"DeleteRecord",
|
|
"POST",
|
|
"51"
|
|
],
|
|
[
|
|
"ArchiveLog",
|
|
"GET",
|
|
"50"
|
|
],
|
|
[
|
|
"CheckThreshold",
|
|
"DELETE",
|
|
"50"
|
|
],
|
|
[
|
|
"MergeBatch",
|
|
"PUT",
|
|
"50"
|
|
],
|
|
[
|
|
"RerouteTrack",
|
|
"POST",
|
|
"50"
|
|
],
|
|
[
|
|
"UpdateBatch",
|
|
"GET",
|
|
"50"
|
|
],
|
|
[
|
|
"ScanPallet",
|
|
"GET",
|
|
"49"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1047",
|
|
"sql": "WITH src AS (SELECT operation_name, exception_message FROM \"{stream}\" WHERE match_all('warehouse')), errs AS (SELECT operation_name FROM src WHERE regexp_match(exception_message, 'Exception') IS NOT NULL) SELECT operation_name, COUNT(*) AS c FROM errs GROUP BY operation_name ORDER BY c DESC, operation_name ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"operation_name",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"RetryScan",
|
|
"51"
|
|
],
|
|
[
|
|
"ArchiveLog",
|
|
"50"
|
|
],
|
|
[
|
|
"CheckThreshold",
|
|
"50"
|
|
],
|
|
[
|
|
"DeleteRecord",
|
|
"50"
|
|
],
|
|
[
|
|
"MergeBatch",
|
|
"50"
|
|
],
|
|
[
|
|
"RerouteTrack",
|
|
"50"
|
|
],
|
|
[
|
|
"ScanPallet",
|
|
"50"
|
|
],
|
|
[
|
|
"SearchItems",
|
|
"50"
|
|
],
|
|
[
|
|
"UpdateBatch",
|
|
"50"
|
|
],
|
|
[
|
|
"SyncZone",
|
|
"49"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1048",
|
|
"sql": "SELECT DISTINCT http_method, facility_zone FROM \"{stream}\" WHERE match_all('warehouse') AND http_method IN ('GET','POST','PUT') ORDER BY http_method ASC, facility_zone ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"http_method",
|
|
"facility_zone"
|
|
],
|
|
"results": [
|
|
[
|
|
"GET",
|
|
"ZONE-1"
|
|
],
|
|
[
|
|
"GET",
|
|
"ZONE-3"
|
|
],
|
|
[
|
|
"POST",
|
|
"ZONE-2"
|
|
],
|
|
[
|
|
"POST",
|
|
"ZONE-4"
|
|
],
|
|
[
|
|
"PUT",
|
|
"ZONE-1"
|
|
],
|
|
[
|
|
"PUT",
|
|
"ZONE-3"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1049",
|
|
"sql": "WITH grouped AS (SELECT region_code, COUNT(*) AS c FROM \"{stream}\" WHERE match_all('warehouse') GROUP BY region_code) SELECT region_code, c FROM grouped WHERE c > 5 ORDER BY c DESC, region_code ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"region_code",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"AP-SOUTH",
|
|
"51"
|
|
],
|
|
[
|
|
"AP-CENTRAL",
|
|
"50"
|
|
],
|
|
[
|
|
"EU-CENTRAL",
|
|
"50"
|
|
],
|
|
[
|
|
"EU-NORTH",
|
|
"50"
|
|
],
|
|
[
|
|
"EU-WEST",
|
|
"50"
|
|
],
|
|
[
|
|
"SA-EAST",
|
|
"50"
|
|
],
|
|
[
|
|
"US-CENTRAL",
|
|
"50"
|
|
],
|
|
[
|
|
"US-EAST",
|
|
"50"
|
|
],
|
|
[
|
|
"US-WEST",
|
|
"50"
|
|
],
|
|
[
|
|
"AP-EAST",
|
|
"49"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1050",
|
|
"sql": "WITH src AS (SELECT facility_zone, CASE WHEN response_code >= 500 THEN 'server_err' WHEN response_code >= 400 THEN 'client_err' ELSE 'ok' END AS status_class FROM \"{stream}\" WHERE match_all('warehouse')) SELECT status_class, facility_zone, COUNT(*) AS c FROM src GROUP BY status_class, facility_zone ORDER BY c DESC, status_class ASC, facility_zone ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"status_class",
|
|
"facility_zone",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"client_err",
|
|
"ZONE-1",
|
|
"50"
|
|
],
|
|
[
|
|
"client_err",
|
|
"ZONE-2",
|
|
"50"
|
|
],
|
|
[
|
|
"client_err",
|
|
"ZONE-4",
|
|
"50"
|
|
],
|
|
[
|
|
"ok",
|
|
"ZONE-1",
|
|
"50"
|
|
],
|
|
[
|
|
"ok",
|
|
"ZONE-2",
|
|
"50"
|
|
],
|
|
[
|
|
"ok",
|
|
"ZONE-3",
|
|
"50"
|
|
],
|
|
[
|
|
"ok",
|
|
"ZONE-4",
|
|
"50"
|
|
],
|
|
[
|
|
"client_err",
|
|
"ZONE-3",
|
|
"49"
|
|
],
|
|
[
|
|
"server_err",
|
|
"ZONE-4",
|
|
"26"
|
|
],
|
|
[
|
|
"server_err",
|
|
"ZONE-1",
|
|
"25"
|
|
],
|
|
[
|
|
"server_err",
|
|
"ZONE-2",
|
|
"25"
|
|
],
|
|
[
|
|
"server_err",
|
|
"ZONE-3",
|
|
"25"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1051",
|
|
"sql": "SELECT sorter_model, COUNT(*) AS c FROM \"{stream}\" WHERE match_all('warehouse') AND sorter_model IN ('SORT-X1','SORT-A7','SORT-M3','SORT-Q5') GROUP BY sorter_model HAVING COUNT(*) > 2 ORDER BY c DESC, sorter_model ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"sorter_model",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"SORT-A7",
|
|
"126"
|
|
],
|
|
[
|
|
"SORT-M3",
|
|
"125"
|
|
],
|
|
[
|
|
"SORT-X1",
|
|
"124"
|
|
],
|
|
[
|
|
"SORT-Q5",
|
|
"62"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1052",
|
|
"sql": "WITH raw AS (SELECT tag_b, log_message, latency_ms FROM \"{stream}\" WHERE match_all('warehouse')), classified AS (SELECT tag_b, CASE WHEN latency_ms < 100 THEN 'fast' WHEN latency_ms < 1000 THEN 'medium' ELSE 'slow' END AS bucket FROM raw WHERE latency_ms IS NOT NULL) SELECT bucket, tag_b, COUNT(*) AS c FROM classified GROUP BY bucket, tag_b ORDER BY c DESC, bucket ASC, tag_b ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"bucket",
|
|
"tag_b",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"fast",
|
|
"critical",
|
|
"100"
|
|
],
|
|
[
|
|
"slow",
|
|
"critical",
|
|
"51"
|
|
],
|
|
[
|
|
"fast",
|
|
"low",
|
|
"50"
|
|
],
|
|
[
|
|
"fast",
|
|
"medium",
|
|
"50"
|
|
],
|
|
[
|
|
"medium",
|
|
"high",
|
|
"50"
|
|
],
|
|
[
|
|
"medium",
|
|
"medium",
|
|
"50"
|
|
],
|
|
[
|
|
"slow",
|
|
"high",
|
|
"50"
|
|
],
|
|
[
|
|
"slow",
|
|
"low",
|
|
"50"
|
|
],
|
|
[
|
|
"fast",
|
|
"high",
|
|
"49"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1053",
|
|
"sql": "WITH a AS (SELECT facility_zone, COUNT(*) AS c FROM \"{stream}\" WHERE match_all('warehouse') GROUP BY facility_zone), b AS (SELECT facility_zone, COUNT(*) AS c FROM \"{stream}\" WHERE match_all('event') GROUP BY facility_zone) SELECT a.facility_zone, a.c AS c1, b.c AS c2 FROM a JOIN b ON a.facility_zone = b.facility_zone ORDER BY c1 DESC, a.facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"c1",
|
|
"c2"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"126",
|
|
"126"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"125",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"125",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"124",
|
|
"124"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1054",
|
|
"sql": "WITH a AS (SELECT facility_zone, COUNT(*) AS c FROM \"{stream}\" WHERE match_all('warehouse') GROUP BY facility_zone), b AS (SELECT facility_zone, COUNT(*) AS c FROM \"{stream}\" WHERE match_all('ACK') GROUP BY facility_zone) SELECT a.facility_zone, a.c AS all_c, COALESCE(b.c, 0) AS ack_c FROM a LEFT JOIN b ON a.facility_zone = b.facility_zone ORDER BY all_c DESC, a.facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"all_c",
|
|
"ack_c"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"126",
|
|
"51"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"125",
|
|
"50"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"125",
|
|
"50"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"124",
|
|
"50"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1056",
|
|
"sql": "SELECT outer_t.http_method, outer_t.n FROM (SELECT http_method, COUNT(*) AS n FROM \"{stream}\" WHERE match_all('warehouse') GROUP BY http_method) outer_t JOIN (SELECT DISTINCT http_method FROM \"{stream}\" WHERE match_all('event')) inner_t ON outer_t.http_method = inner_t.http_method ORDER BY outer_t.n DESC, outer_t.http_method ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"http_method",
|
|
"n"
|
|
],
|
|
"results": [
|
|
[
|
|
"POST",
|
|
"151"
|
|
],
|
|
[
|
|
"GET",
|
|
"149"
|
|
],
|
|
[
|
|
"DELETE",
|
|
"100"
|
|
],
|
|
[
|
|
"PUT",
|
|
"100"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1057",
|
|
"sql": "WITH fts AS (SELECT facility_zone, pallet_id FROM \"{stream}\" WHERE match_all('warehouse') AND pallet_id IS NOT NULL) SELECT f.facility_zone, COUNT(DISTINCT f.pallet_id) AS uniq FROM fts f JOIN fts f2 ON f.facility_zone = f2.facility_zone GROUP BY f.facility_zone ORDER BY uniq DESC, f.facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"uniq"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-1",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"2"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"2"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1059",
|
|
"sql": "WITH ranked AS (SELECT facility_zone, throughput_rate, ROW_NUMBER() OVER (PARTITION BY facility_zone ORDER BY throughput_rate DESC, _timestamp) AS rn FROM \"{stream}\" WHERE match_all('warehouse') AND throughput_rate IS NOT NULL) SELECT facility_zone, throughput_rate FROM ranked WHERE rn = 1 ORDER BY throughput_rate DESC, facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"throughput_rate"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-1",
|
|
"900.0"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"900.0"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"725.0"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"725.0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1060",
|
|
"sql": "WITH counted AS (SELECT sorter_model, COUNT(*) OVER (PARTITION BY sorter_model) AS per_model_count FROM \"{stream}\" WHERE match_all('warehouse')) SELECT sorter_model, MAX(per_model_count) AS max_c FROM counted GROUP BY sorter_model ORDER BY max_c DESC, sorter_model ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"sorter_model",
|
|
"max_c"
|
|
],
|
|
"results": [
|
|
[
|
|
"SORT-A7",
|
|
"126"
|
|
],
|
|
[
|
|
"SORT-M3",
|
|
"125"
|
|
],
|
|
[
|
|
"SORT-X1",
|
|
"124"
|
|
],
|
|
[
|
|
"SORT-Z9",
|
|
"63"
|
|
],
|
|
[
|
|
"SORT-Q5",
|
|
"62"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1061",
|
|
"sql": "WITH ranked AS (SELECT facility_zone, component_name, latency_ms, RANK() OVER (PARTITION BY facility_zone ORDER BY latency_ms DESC, _timestamp) AS r FROM \"{stream}\" WHERE match_all('warehouse') AND latency_ms IS NOT NULL) SELECT facility_zone, component_name, latency_ms FROM ranked WHERE r = 1 ORDER BY latency_ms DESC, facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"component_name",
|
|
"latency_ms"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-1",
|
|
"temp-regulator",
|
|
"3200"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"temp-regulator",
|
|
"3200"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"batch-sync",
|
|
"1450"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"batch-sync",
|
|
"1450"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1062",
|
|
"sql": "WITH windowed AS (SELECT tag_a, tag_b, SUM(CAST(payload_size AS BIGINT)) OVER (PARTITION BY tag_a) AS tag_total FROM \"{stream}\" WHERE match_all('warehouse') AND payload_size IS NOT NULL) SELECT tag_a, MAX(tag_total) AS max_total FROM windowed GROUP BY tag_a ORDER BY max_total DESC, tag_a ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"tag_a",
|
|
"max_total"
|
|
],
|
|
"results": [
|
|
[
|
|
"prod",
|
|
"4622336"
|
|
],
|
|
[
|
|
"dev",
|
|
"1868800"
|
|
],
|
|
[
|
|
"staging",
|
|
"121472"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1063",
|
|
"sql": "WITH ranked AS (SELECT region_code, org_name, DENSE_RANK() OVER (PARTITION BY region_code ORDER BY org_name) AS dr FROM \"{stream}\" WHERE match_all('warehouse')) SELECT region_code, COUNT(DISTINCT dr) AS ranks FROM ranked GROUP BY region_code ORDER BY ranks DESC, region_code ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"region_code",
|
|
"ranks"
|
|
],
|
|
"results": [
|
|
[
|
|
"AP-CENTRAL",
|
|
"1"
|
|
],
|
|
[
|
|
"AP-EAST",
|
|
"1"
|
|
],
|
|
[
|
|
"AP-SOUTH",
|
|
"1"
|
|
],
|
|
[
|
|
"EU-CENTRAL",
|
|
"1"
|
|
],
|
|
[
|
|
"EU-NORTH",
|
|
"1"
|
|
],
|
|
[
|
|
"EU-WEST",
|
|
"1"
|
|
],
|
|
[
|
|
"SA-EAST",
|
|
"1"
|
|
],
|
|
[
|
|
"US-CENTRAL",
|
|
"1"
|
|
],
|
|
[
|
|
"US-EAST",
|
|
"1"
|
|
],
|
|
[
|
|
"US-WEST",
|
|
"1"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1064",
|
|
"sql": "SELECT facility_zone, COUNT(*) AS cnt FROM \"{stream}\" WHERE NOT match_all('error') AND facility_zone IS NOT NULL GROUP BY facility_zone ORDER BY cnt DESC, facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"126"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"124"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1065",
|
|
"sql": "WITH has_warehouse AS (SELECT facility_zone, log FROM \"{stream}\" WHERE match_all('warehouse') AND NOT match_all('error')) SELECT facility_zone, COUNT(*) AS c FROM has_warehouse GROUP BY facility_zone ORDER BY c DESC, facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"126"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"124"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1066",
|
|
"sql": "WITH pos AS (SELECT facility_zone, 'w' AS src FROM \"{stream}\" WHERE match_all('warehouse')), neg AS (SELECT facility_zone, 'n' AS src FROM \"{stream}\" WHERE NOT match_all('error')) SELECT src, COUNT(*) AS c FROM (SELECT * FROM pos UNION ALL SELECT * FROM neg) u GROUP BY src ORDER BY src ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"src",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"n",
|
|
"500"
|
|
],
|
|
[
|
|
"w",
|
|
"500"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1067",
|
|
"sql": "SELECT facility_zone, COUNT(*) AS both_cnt FROM \"{stream}\" WHERE match_all('warehouse') AND match_all('event') GROUP BY facility_zone ORDER BY both_cnt DESC, facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"both_cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"126"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"124"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1068",
|
|
"sql": "SELECT facility_zone, COUNT(*) AS or_cnt FROM \"{stream}\" WHERE match_all('warehouse') OR match_all('error') GROUP BY facility_zone ORDER BY or_cnt DESC, facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"or_cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"126"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"124"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1055",
|
|
"sql": "WITH fts_a AS (SELECT facility_zone, COUNT(*) AS a_cnt FROM \"{stream}\" WHERE match_all('warehouse') AND facility_zone IS NOT NULL GROUP BY facility_zone), all_b AS (SELECT facility_zone, COUNT(*) AS b_cnt FROM \"{stream2}\" WHERE facility_zone IS NOT NULL GROUP BY facility_zone) SELECT a.facility_zone, a.a_cnt, b.b_cnt FROM fts_a a JOIN all_b b ON a.facility_zone = b.facility_zone ORDER BY a.a_cnt DESC, a.facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"a_cnt",
|
|
"b_cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-4",
|
|
"126",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"125",
|
|
"125"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"125",
|
|
"124"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"124",
|
|
"126"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1058",
|
|
"sql": "WITH fts_left AS (SELECT region_code, COUNT(*) AS l_cnt FROM \"{stream}\" WHERE match_all('warehouse') AND region_code IS NOT NULL GROUP BY region_code), fts_right AS (SELECT region_code, COUNT(*) AS r_cnt FROM \"{stream2}\" WHERE match_all('event') AND region_code IS NOT NULL GROUP BY region_code) SELECT l.region_code, l.l_cnt, r.r_cnt FROM fts_left l JOIN fts_right r ON l.region_code = r.region_code ORDER BY l.l_cnt DESC, l.region_code ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"region_code",
|
|
"l_cnt",
|
|
"r_cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"AP-SOUTH",
|
|
"51",
|
|
"50"
|
|
],
|
|
[
|
|
"AP-CENTRAL",
|
|
"50",
|
|
"50"
|
|
],
|
|
[
|
|
"EU-CENTRAL",
|
|
"50",
|
|
"50"
|
|
],
|
|
[
|
|
"EU-NORTH",
|
|
"50",
|
|
"50"
|
|
],
|
|
[
|
|
"EU-WEST",
|
|
"50",
|
|
"50"
|
|
],
|
|
[
|
|
"SA-EAST",
|
|
"50",
|
|
"49"
|
|
],
|
|
[
|
|
"US-CENTRAL",
|
|
"50",
|
|
"50"
|
|
],
|
|
[
|
|
"US-EAST",
|
|
"50",
|
|
"50"
|
|
],
|
|
[
|
|
"US-WEST",
|
|
"50",
|
|
"50"
|
|
],
|
|
[
|
|
"AP-EAST",
|
|
"49",
|
|
"51"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1069",
|
|
"sql": "SELECT http_method, COUNT(*) AS cnt FROM \"{stream}\" WHERE (match_all('warehouse') OR match_all('event')) AND http_method IN ('GET','POST','PUT','DELETE') GROUP BY http_method ORDER BY cnt DESC, http_method ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"http_method",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"POST",
|
|
"151"
|
|
],
|
|
[
|
|
"GET",
|
|
"149"
|
|
],
|
|
[
|
|
"DELETE",
|
|
"100"
|
|
],
|
|
[
|
|
"PUT",
|
|
"100"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1016",
|
|
"sql": "WITH filtered AS (SELECT facility_zone FROM \"{stream}\" WHERE match_all('warehouse') AND log_message LIKE 'GET %' UNION ALL SELECT facility_zone FROM \"{stream}\" WHERE match_all('warehouse') AND log_message LIKE 'POST %' UNION ALL SELECT facility_zone FROM \"{stream}\" WHERE match_all('warehouse') AND log_message LIKE 'ERROR:%') SELECT facility_zone, COUNT(*) AS cnt FROM filtered GROUP BY facility_zone ORDER BY cnt DESC, facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-2",
|
|
"75"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"75"
|
|
],
|
|
[
|
|
"ZONE-1",
|
|
"25"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"25"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1041",
|
|
"sql": "WITH src AS (SELECT facility_zone, log_message FROM \"{stream}\" WHERE match_all('warehouse')), filtered AS (SELECT facility_zone FROM src WHERE log_message LIKE 'GET %' OR log_message LIKE 'POST %' OR log_message LIKE 'PUT %') SELECT facility_zone, COUNT(*) AS cnt FROM filtered GROUP BY facility_zone ORDER BY cnt DESC, facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"cnt"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-1",
|
|
"25"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"25"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"25"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"25"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1045",
|
|
"sql": "WITH raw AS (SELECT event_detail, facility_zone FROM \"{stream}\" WHERE match_all('warehouse')), extracted AS (SELECT facility_zone, event_detail FROM raw WHERE event_detail IS NOT NULL), matched AS (SELECT facility_zone FROM extracted WHERE event_detail LIKE '%batch%' OR event_detail LIKE '%segment%') SELECT facility_zone, COUNT(*) AS c FROM matched GROUP BY facility_zone ORDER BY c DESC, facility_zone ASC LIMIT 10",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"facility_zone",
|
|
"c"
|
|
],
|
|
"results": [
|
|
[
|
|
"ZONE-1",
|
|
"100"
|
|
],
|
|
[
|
|
"ZONE-3",
|
|
"99"
|
|
],
|
|
[
|
|
"ZONE-2",
|
|
"75"
|
|
],
|
|
[
|
|
"ZONE-4",
|
|
"75"
|
|
]
|
|
],
|
|
"results_mode": "rowsort"
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1071",
|
|
"sql": "WITH bucketed AS (SELECT histogram(_timestamp, '10 minute') AS bucket, facility_zone FROM \"{stream}\" WHERE match_all('warehouse') AND facility_zone IS NOT NULL) SELECT bucket, facility_zone, COUNT(*) AS n FROM bucketed GROUP BY bucket, facility_zone ORDER BY bucket ASC, n DESC LIMIT 30",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"bucket",
|
|
"facility_zone",
|
|
"n"
|
|
],
|
|
"results": [
|
|
[
|
|
"2026-08-14T05:00:00",
|
|
"ZONE-3",
|
|
"6"
|
|
],
|
|
[
|
|
"2026-08-14T05:00:00",
|
|
"ZONE-1",
|
|
"6"
|
|
],
|
|
[
|
|
"2026-08-14T05:00:00",
|
|
"ZONE-4",
|
|
"6"
|
|
],
|
|
[
|
|
"2026-08-14T05:00:00",
|
|
"ZONE-2",
|
|
"6"
|
|
],
|
|
[
|
|
"2026-08-14T05:10:00",
|
|
"ZONE-1",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T05:10:00",
|
|
"ZONE-4",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T05:10:00",
|
|
"ZONE-3",
|
|
"12"
|
|
],
|
|
[
|
|
"2026-08-14T05:10:00",
|
|
"ZONE-2",
|
|
"12"
|
|
],
|
|
[
|
|
"2026-08-14T05:20:00",
|
|
"ZONE-2",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T05:20:00",
|
|
"ZONE-3",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T05:20:00",
|
|
"ZONE-1",
|
|
"12"
|
|
],
|
|
[
|
|
"2026-08-14T05:20:00",
|
|
"ZONE-4",
|
|
"12"
|
|
],
|
|
[
|
|
"2026-08-14T05:30:00",
|
|
"ZONE-4",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T05:30:00",
|
|
"ZONE-1",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T05:30:00",
|
|
"ZONE-2",
|
|
"12"
|
|
],
|
|
[
|
|
"2026-08-14T05:30:00",
|
|
"ZONE-3",
|
|
"12"
|
|
],
|
|
[
|
|
"2026-08-14T05:40:00",
|
|
"ZONE-3",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T05:40:00",
|
|
"ZONE-2",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T05:40:00",
|
|
"ZONE-1",
|
|
"12"
|
|
],
|
|
[
|
|
"2026-08-14T05:40:00",
|
|
"ZONE-4",
|
|
"12"
|
|
],
|
|
[
|
|
"2026-08-14T05:50:00",
|
|
"ZONE-4",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T05:50:00",
|
|
"ZONE-1",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T05:50:00",
|
|
"ZONE-2",
|
|
"12"
|
|
],
|
|
[
|
|
"2026-08-14T05:50:00",
|
|
"ZONE-3",
|
|
"12"
|
|
],
|
|
[
|
|
"2026-08-14T06:00:00",
|
|
"ZONE-3",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T06:00:00",
|
|
"ZONE-2",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T06:00:00",
|
|
"ZONE-1",
|
|
"12"
|
|
],
|
|
[
|
|
"2026-08-14T06:00:00",
|
|
"ZONE-4",
|
|
"12"
|
|
],
|
|
[
|
|
"2026-08-14T06:10:00",
|
|
"ZONE-4",
|
|
"13"
|
|
],
|
|
[
|
|
"2026-08-14T06:10:00",
|
|
"ZONE-1",
|
|
"13"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1072",
|
|
"sql": "SELECT bucket, avg_lat FROM (SELECT histogram(_timestamp, '15 minute') AS bucket, AVG(CAST(latency_ms AS FLOAT)) AS avg_lat FROM \"{stream}\" WHERE match_all('warehouse') AND latency_ms IS NOT NULL GROUP BY bucket) s ORDER BY bucket ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"bucket",
|
|
"avg_lat"
|
|
],
|
|
"results": [
|
|
[
|
|
"2026-08-14T05:00:00",
|
|
"772.265306122449"
|
|
],
|
|
[
|
|
"2026-08-14T05:15:00",
|
|
"821.88"
|
|
],
|
|
[
|
|
"2026-08-14T05:30:00",
|
|
"695.32"
|
|
],
|
|
[
|
|
"2026-08-14T05:45:00",
|
|
"821.88"
|
|
],
|
|
[
|
|
"2026-08-14T06:00:00",
|
|
"695.32"
|
|
],
|
|
[
|
|
"2026-08-14T06:15:00",
|
|
"821.88"
|
|
],
|
|
[
|
|
"2026-08-14T06:30:00",
|
|
"695.32"
|
|
],
|
|
[
|
|
"2026-08-14T06:45:00",
|
|
"1450.0"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
},
|
|
{
|
|
"id": "Q1070",
|
|
"sql": "SELECT histogram(_timestamp, '5 minute') AS bucket, COUNT(*) AS hits FROM \"{stream}\" WHERE match_all('warehouse') GROUP BY bucket ORDER BY bucket ASC LIMIT 20",
|
|
"category": "full_text_search",
|
|
"expected": {
|
|
"columns": [
|
|
"bucket",
|
|
"hits"
|
|
],
|
|
"results": [
|
|
[
|
|
"2026-08-14T05:05:00",
|
|
"24"
|
|
],
|
|
[
|
|
"2026-08-14T05:10:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T05:15:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T05:20:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T05:25:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T05:30:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T05:35:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T05:40:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T05:45:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T05:50:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T05:55:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T06:00:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T06:05:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T06:10:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T06:15:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T06:20:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T06:25:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T06:30:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T06:35:00",
|
|
"25"
|
|
],
|
|
[
|
|
"2026-08-14T06:40:00",
|
|
"25"
|
|
]
|
|
],
|
|
"results_mode": "rowsort",
|
|
"skip_sqllogictest": true,
|
|
"skip_row_count": true,
|
|
"skip_column_check": true
|
|
},
|
|
"time_offset": {
|
|
"start_offset": 0,
|
|
"end_offset": 6000000000
|
|
}
|
|
}
|
|
],
|
|
"last_query_id": 82
|
|
}
|