You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
qry: SELECT * FROM test_tiered_watermark ORDER BY id DESC SETTINGS enable_analyzer = 1, prefer_localhost_replica = 0, log_queries=1, serialize_query_plan=0, log_comment = 'test_tiered_watermark', max_threads=1 FORMAT Null;
qry: SELECT * FROM test_tiered_watermark ORDER BY id DESC SETTINGS enable_analyzer = 1, prefer_localhost_replica = 0, log_queries=1, serialize_query_plan=0, log_comment = 'test_tiered_watermark', max_threads=1 FORMAT Null;
182
+
log_comment: test_tiered_watermark
183
183
184
184
Row 2:
185
185
──────
186
-
type: QueryFinish
187
-
is_initial_query: 0
188
-
tbl: ['db.test_tiered_watermark_after']
189
-
qry: SELECT `__table1`.`id` AS `id`, `__table1`.`name` AS `name`, `__table1`.`date` AS `date`, `__table1`.`value` AS `value` FROM `db`.`test_tiered_watermark_after` AS `__table1` WHERE `__table1`.`date` >= '2025-09-01' ORDER BY `__table1`.`id` DESC
190
-
log_comment: test_tiered_watermark
186
+
type: QueryFinish
187
+
is_initial_query2: 0
188
+
tbl: ['db.test_tiered_watermark_after']
189
+
qry: SELECT `__table1`.`id` AS `id`, `__table1`.`name` AS `name`, `__table1`.`date` AS `date`, `__table1`.`value` AS `value` FROM `db`.`test_tiered_watermark_after` AS `__table1` WHERE `__table1`.`date` >= '2025-09-01' ORDER BY `__table1`.`id` DESC
190
+
log_comment: test_tiered_watermark
191
191
192
192
Row 3:
193
193
──────
194
-
type: QueryFinish
195
-
is_initial_query: 0
196
-
tbl: ['db.test_tiered_watermark_before']
197
-
qry: SELECT `__table1`.`id` AS `id`, `__table1`.`name` AS `name`, `__table1`.`date` AS `date`, `__table1`.`value` AS `value` FROM `db`.`test_tiered_watermark_before` AS `__table1` WHERE `__table1`.`date` < '2025-09-01' ORDER BY `__table1`.`id` DESC
198
-
log_comment: test_tiered_watermark
194
+
type: QueryFinish
195
+
is_initial_query2: 0
196
+
tbl: ['db.test_tiered_watermark_before']
197
+
qry: SELECT `__table1`.`id` AS `id`, `__table1`.`name` AS `name`, `__table1`.`date` AS `date`, `__table1`.`value` AS `value` FROM `db`.`test_tiered_watermark_before` AS `__table1` WHERE `__table1`.`date` < '2025-09-01' ORDER BY `__table1`.`id` DESC
Copy file name to clipboardExpand all lines: tests/queries/0_stateless/03642_tiered_distributed.sql
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -274,13 +274,14 @@ SELECT 'Read predicate-filtered data with analyzer enabled and prefer localhost
274
274
SELECT*FROM test_tiered_watermark ORDER BY id SETTINGS enable_analyzer =1, prefer_localhost_replica =1;
275
275
276
276
-- other combinations of settings work, but give a bit different content in the query_log
277
+
-- See the problem around is_initial_query described in https://github.com/Altinity/ClickHouse/issues/1077
277
278
SELECT'Check if the subqueries were recorded in query_log';
278
279
279
280
SELECT*FROM test_tiered_watermark ORDER BY id DESC SETTINGS enable_analyzer =1, prefer_localhost_replica =0, log_queries=1, serialize_query_plan=0, log_comment ='test_tiered_watermark', max_threads=1 FORMAT Null;
280
281
SYSTEM FLUSH LOGS;
281
282
SELECT
282
283
type,
283
-
is_initial_query,
284
+
query_id = initial_query_id AS is_initial_query2,
284
285
arraySort(arrayMap(x -> replaceAll(x, currentDatabase(), 'db'), tables)) as tbl,
285
286
replaceAll(query, currentDatabase(), 'db') as qry,
0 commit comments