跳转到主要内容
跳转到主要内容
编辑此页

asynchronous_inserts

在 ClickHouse Cloud 中查询

此系统表中的数据在 ClickHouse Cloud 的每个节点上本地保存。 因此,要获得所有数据的完整视图,需要使用 clusterAllReplicas 函数。 有关更多详细信息,请参见此处

包含有关队列中待处理的异步插入的信息。

  • query (String) — 查询字符串。
  • database (String) — 表格所在的数据库名称。
  • table (String) — 表格名称。
  • format (String) — 格式名称。
  • first_update (DateTime64) — 首次插入时间,分辨率为微秒。
  • total_bytes (UInt64) — 队列中等待的总字节数。
  • entries.query_id (Array(String)) - 队列中等待的插入查询的查询 ID 数组。
  • entries.bytes (Array(UInt64)) - 队列中等待的每个插入查询的字节数组。

示例

查询

SELECT * FROM system.asynchronous_inserts LIMIT 1 \G;

结果

Row 1:
──────
query: INSERT INTO public.data_guess (user_id, datasource_id, timestamp, path, type, num, str) FORMAT CSV
database: public
table: data_guess
format: CSV
first_update: 2023-06-08 10:08:54.199606
total_bytes: 133223
entries.query_id: ['b46cd4c4-0269-4d0b-99f5-d27668c6102e']
entries.bytes: [133223]

参见