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

[Fix](hive-writer) Cherry pick 32721,32775. #33443

Closed
wants to merge 2 commits into from

Conversation

kaka11chen
Copy link
Contributor

Proposed changes

Cherry pick #32721 #32775.

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

…ed by refactoring and add hive writing regression test. (apache#32721)

Issue Number: apache#31442

- Fix the issue of not initializing the writer caused by refactoring code in apache#31716.
- Fix reference lifetime issue of `TParquetVersion::type parquet_version` in `VParquetTransformer ` when using temp object.
- Add hive writing regression tests.
…ing when hive partition writer write block to file. (apache#32775)
@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

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

Status st = _vfile_writer->close();
if (st != Status::OK()) {
LOG(WARNING) << fmt::format("_vfile_writer close failed, reason: {}", st.to_string());
Status VHivePartitionWriter::close(const Status& status) {
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: method 'close' can be made static [readability-convert-member-functions-to-static]

be/src/vec/sink/writer/vhive_partition_writer.h:58:

-     Status close(const Status& status);
+     static Status close(const Status& status);

@kaka11chen kaka11chen closed this Apr 9, 2024
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

Successfully merging this pull request may close these issues.

2 participants