Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: system.copy_history
---

import FunctionDescription from '@site/src/components/FunctionDescription';

<FunctionDescription description="Introduced or updated: v1.2.823"/>

Contains information about copy history.

```sql
select * from copy_history('abc');

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

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

Loading