Skip to content

Conversation

@morningman
Copy link
Contributor

Proposed changes

This #30703 allow writing empty file.
But internal segment file do not allow empty file.
So I add a new FileWriterOption create_empty_file to indicate whether to
create empty file.

This only effect s3/hdfs/broker file writer

After this,

  1. For segment file, no empty file will be created.
  2. For export operation, if there is no data, empty file will be created.

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

2 similar comments
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Member

@kaijchen kaijchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@gavinchou
Copy link
Contributor

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.77% (8558/23927)
Line Coverage: 27.72% (69425/250430)
Region Coverage: 26.83% (36022/134243)
Branch Coverage: 23.65% (18430/77922)
Coverage Report: http://coverage.selectdb-in.cc/coverage/a434614071fdf7fa9ecbacea2a8269b7d5d61c26_a434614071fdf7fa9ecbacea2a8269b7d5d61c26/report/index.html

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Feb 20, 2024
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@dataroaring dataroaring merged commit be06ef4 into apache:master Feb 21, 2024
morningman added a commit to morningman/doris that referenced this pull request Feb 21, 2024
morningman added a commit to morningman/doris that referenced this pull request Feb 21, 2024
yiguolei pushed a commit that referenced this pull request Feb 21, 2024
…#28983 #30703 #31169 (#31213)

* (feature)(cloud) Use dynamic allocator instead of static buffer pool for better elasticity. (#28983)

* [fix](outfile) Fix unable to export empty data (#30703)

Issue Number: close #30600
Fix unable to export empty data to hdfs / S3, this behavior is inconsistent with version 1.2.7,
version 1.2.7 can export empty data to hdfs/ S3, and there will be exported files on S3/HDFS.

* [fix](file-writer) avoid empty file for segment writer (#31169)

---------

Co-authored-by: AlexYue <yj976240184@gmail.com>
Co-authored-by: zxealous <zhouchangyue@baidu.com>
mongo360 pushed a commit to mongo360/doris that referenced this pull request Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/2.0.6-merged dev/2.1.0-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants