Skip to content

[Fix](multi-catalog)Fix the issue of not initializing the writer caused by refactoring and add hive writing regression test. (#32721)#33446

Merged
morningman merged 1 commit intoapache:2.1-tmpfrom
kaka11chen:cherry-pick-32721
Apr 9, 2024
Merged

Conversation

@kaka11chen
Copy link
Contributor

Proposed changes

backport #32721.

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...

…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.
@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.

@morningman morningman merged commit 533effd into apache:2.1-tmp Apr 9, 2024
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);

yiguolei pushed a commit that referenced this pull request Apr 10, 2024
…ed by refactoring and add hive writing regression test. (#32721) (#33446)

backport #32721.
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.

3 participants