Uh oh!
There was an error while loading. Please reload this page.
[Fix](Export) Export delete multiple times when specify the delete_existing_files property - #38400
Merged
Merged
Conversation
doris-robot
commented
Jul 26, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Contributor
clang-tidy review says "All clean, LGTM! 👍" |
BePPPower
commented
Jul 26, 2024
ContributorAuthor
run buildall |
Contributor
clang-tidy review says "All clean, LGTM! 👍" |
BePPPowerforce-pushed
the
exportDeleteExistFilesRpc
branch
from
August 1, 2024 07:47
ea5d257 to
e5c2aebCompareContributor
clang-tidy review says "All clean, LGTM! 👍" |
BePPPower
commented
Aug 1, 2024
ContributorAuthor
run buildall |
Contributor
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
Aug 1, 2024
TPC-H: Total hot run time: 42039 ms |
doris-robot
commented
Aug 1, 2024
TPC-DS: Total hot run time: 170728 ms |
doris-robot
commented
Aug 1, 2024
ClickBench: Total hot run time: 30.09 s |
Contributor
clang-tidy review says "All clean, LGTM! 👍" |
BePPPower
commented
Aug 2, 2024
ContributorAuthor
run buildall |
Contributor
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
Contributor
clang-tidy review says "All clean, LGTM! 👍" |
Contributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
doris-robot
commented
Aug 2, 2024
TPC-H: Total hot run time: 41677 ms |
doris-robot
commented
Aug 2, 2024
TPC-DS: Total hot run time: 169454 ms |
doris-robot
commented
Aug 2, 2024
ClickBench: Total hot run time: 29.91 s |
CalvinKirs
approved these changes
Aug 5, 2024
dataroaring pushed a commit
that referenced
this pull request
Aug 11, 2024
…xisting_files` property (#38400) When the `Export` statement specifies the `delete_existing_files` property, each `Outfile` statement generated by the `Export` will carry this property. This causes each `Outfile` statement to delete existing files, so only the result of the last Outfile statement will be retained. So, we add a rpc method which can delete existing files for `Export` statement and the `Outfile` statements generated by the `Export` will not carry `delete_existing_files` property any more.
BePPPower added a commit
to BePPPower/doris
that referenced
this pull request
Aug 13, 2024
…xisting_files` property (apache#38400) When the `Export` statement specifies the `delete_existing_files` property, each `Outfile` statement generated by the `Export` will carry this property. This causes each `Outfile` statement to delete existing files, so only the result of the last Outfile statement will be retained. So, we add a rpc method which can delete existing files for `Export` statement and the `Outfile` statements generated by the `Export` will not carry `delete_existing_files` property any more.
yiguolei pushed a commit
that referenced
this pull request
Aug 13, 2024
…xisting_files` property () (#39304) bp: #38400 When the `Export` statement specifies the `delete_existing_files` property, each `Outfile` statement generated by the `Export` will carry this property. This causes each `Outfile` statement to delete existing files, so only the result of the last Outfile statement will be retained. So, we add a rpc method which can delete existing files for `Export` statement and the `Outfile` statements generated by the `Export` will not carry `delete_existing_files` property any more. ## Proposed changes Issue Number: close #xxx <!--Describe your changes.-->
dataroaring pushed a commit
that referenced
this pull request
Aug 16, 2024
…xisting_files` property (#38400) When the `Export` statement specifies the `delete_existing_files` property, each `Outfile` statement generated by the `Export` will carry this property. This causes each `Outfile` statement to delete existing files, so only the result of the last Outfile statement will be retained. So, we add a rpc method which can delete existing files for `Export` statement and the `Outfile` statements generated by the `Export` will not carry `delete_existing_files` property any more.
15 tasks
morningman pushed a commit
that referenced
this pull request
Mar 23, 2026
…61223) ### What problem does this PR solve? Issue Number: N/A Related PR: #38400 Problem Summary: When `select ... into outfile` uses `delete_existing_files=true`, parallel outfile writers can race on directory cleanup and delete files uploaded by other writers. This PR follows the same FE-side cleanup pattern used by export in #38400: remote outfile cleanup is executed once in FE before query execution, and the delete flag is cleared before sink options are sent to BE. This PR also aligns local outfile behavior with export: `file:///` does not support `delete_existing_files=true`, so FE rejects that combination during analysis instead of relying on BE-side cleanup. To reduce duplicated logic, the FE-side parent-directory cleanup used by export/outfile/TVF is refactored into shared `BrokerUtil` helpers.
suxiaogang223 added a commit
to suxiaogang223/doris
that referenced
this pull request
Mar 25, 2026
…pache#61223) Issue Number: N/A Related PR: apache#38400 Problem Summary: When `select ... into outfile` uses `delete_existing_files=true`, parallel outfile writers can race on directory cleanup and delete files uploaded by other writers. This PR follows the same FE-side cleanup pattern used by export in apache#38400: remote outfile cleanup is executed once in FE before query execution, and the delete flag is cleared before sink options are sent to BE. This PR also aligns local outfile behavior with export: `file:///` does not support `delete_existing_files=true`, so FE rejects that combination during analysis instead of relying on BE-side cleanup. To reduce duplicated logic, the FE-side parent-directory cleanup used by export/outfile/TVF is refactored into shared `BrokerUtil` helpers. (cherry picked from commit 1576653)
HappenLee pushed a commit
to HappenLee/incubator-doris
that referenced
this pull request
Mar 31, 2026
…pache#61223) ### What problem does this PR solve? Issue Number: N/A Related PR: apache#38400 Problem Summary: When `select ... into outfile` uses `delete_existing_files=true`, parallel outfile writers can race on directory cleanup and delete files uploaded by other writers. This PR follows the same FE-side cleanup pattern used by export in apache#38400: remote outfile cleanup is executed once in FE before query execution, and the delete flag is cleared before sink options are sent to BE. This PR also aligns local outfile behavior with export: `file:///` does not support `delete_existing_files=true`, so FE rejects that combination during analysis instead of relying on BE-side cleanup. To reduce duplicated logic, the FE-side parent-directory cleanup used by export/outfile/TVF is refactored into shared `BrokerUtil` helpers.
HappenLee pushed a commit
to HappenLee/incubator-doris
that referenced
this pull request
Apr 24, 2026
…xisting_files` property (apache#38400) When the `Export` statement specifies the `delete_existing_files` property, each `Outfile` statement generated by the `Export` will carry this property. This causes each `Outfile` statement to delete existing files, so only the result of the last Outfile statement will be retained. So, we add a rpc method which can delete existing files for `Export` statement and the `Outfile` statements generated by the `Export` will not carry `delete_existing_files` property any more.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the
Exportstatement specifies thedelete_existing_filesproperty, eachOutfilestatement generated by theExportwill carry this property. This causes eachOutfilestatement to delete existing files, so only the result of the last Outfile statement will be retained.So, we add a rpc method which can delete existing files for
Exportstatement and theOutfilestatements generated by theExportwill not carrydelete_existing_filesproperty any more.