Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit limit reached: 15,000 files for 'copy into table'. #17507

Open
flaneur2020 opened this issue Feb 24, 2025 · 1 comment
Open

Commit limit reached: 15,000 files for 'copy into table'. #17507

flaneur2020 opened this issue Feb 24, 2025 · 1 comment

Comments

@flaneur2020
Copy link
Member

Summary

error:

code: 1001, message: Commit limit reached: 15,000 files for 'copy into table'. To handle more files, adjust 'CopyOption' with 'max_files='(e.g., 'max_files=10000') and perform several operations until all files are processed.

is there any background information on the design about this error? will it be more intuitive to just grab 10,000 files directly instead of raising errors?

@wubx
Copy link
Member

wubx commented Feb 24, 2025

This error is by design.

https://docs.databend.com/sql/sql-commands/dml/dml-copy-into-table#copyoptions

The maximum number of files allowed is 15,000, and no default value is set for max_files.

If the number of files handled by the copy process exceeds 15,000, an error will be outputted, prompting the user to define a value for max_files.

Please note that this process may need to be handled multiple times.

If a batch is too large, it can cause significant databend-meta instability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants