跳到主要内容

system.copy_history

Introduced or updated: v1.2.823

包含 COPY 历史的相关信息。

select * from copy_history('abc');

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 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 小时。