Support atomic rename when TRUNCATE is used with INTO OUTFILE#77181
Support atomic rename when TRUNCATE is used with INTO OUTFILE#77181pamarcos merged 8 commits intoClickHouse:masterfrom
Conversation
There was a problem hiding this comment.
Great work! I think overall is en elegant solution that addresses the problem 🚀
I left some minor nitpick comments with what I found.
For the CHANGELOG entry I think we should write a shorter and more straightforward thing. Something more in line with the title of this PR is ok.
Also, please merge latest master against your branch, because we upgraded some submodules recently and testing on our local machines takes more time the more it deviates from master 🙏
tests/queries/0_stateless/03362_into_outfile_atomic_truncate.sh
Outdated
Show resolved
Hide resolved
tests/queries/0_stateless/03362_into_outfile_atomic_truncate.sh
Outdated
Show resolved
Hide resolved
tests/queries/0_stateless/03362_into_outfile_atomic_truncate.sh
Outdated
Show resolved
Hide resolved
tests/queries/0_stateless/03362_into_outfile_atomic_truncate.sh
Outdated
Show resolved
Hide resolved
9612f6a
|
|
||
| bool isSpecialFile(const String & path) | ||
| { | ||
| return path == "/dev/null" || path == "/dev/stdout" || path == "/dev/stderr"; |
|
@pamarcos, this does not work at all: |
No. |
|
Hi @onkar @pamarcos — while reviewing this PR I found the following:
Happy to discuss — close anything that's wrong or already addressed. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Support atomic rename when
TRUNCATEis used withINTO OUTFILE. Resolves #70323.Documentation entry for user-facing changes