跳到主要内容

system.copy_history

Introduced or updated: v1.2.823

包含 COPY 历史的相关信息。

Syntax

SELECT * FROM copy_history('<table_name>');
  • table_name: 表名。
select * from copy_history('my_table');

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ file_name │ content_length │ last_modified │ etag │
│ String │ UInt64 │ Nullable(Timestamp) │ Nullable(String)
├─────────────────────────────────────────────────────────────┼────────────────┼────────────────────────────┼──────────────────┤
│ data_0199db4c843a70b2b81f115f01c8de97_0000_00000000.parquet │ 105312025-10-13 02:00:49.083208NULL
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

请注意,system.copy_history 的结果受 load_file_metadata_expire_hours 设置影响,默认值为 24 小时。

欢迎体验 Databend Cloud

基于 Rust + 对象存储构建的新一代多模态数仓,一个平台即可进行 BI、向量、全文检索及地理空间分析。

支持标准 SQL,自动弹性伸缩,助您快速构建现代化数据平台。

注册即领 ¥200 代金券。

注册体验