Skip to main content

system.copy_history

Introduced or updated: v1.2.823

Contains information about copy history.

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
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Note that, the results of system.copy_history is respected by settings load_file_metadata_expire_hours which is 24 hours by default.