Skip to content

fix(avro): include headers used by file batch reader#422

Merged
zjw1111 merged 1 commit into
alibaba:mainfrom
wgtmac:codex/fix-avro-batch-reader-include
Jul 15, 2026
Merged

fix(avro): include headers used by file batch reader#422
zjw1111 merged 1 commit into
alibaba:mainfrom
wgtmac:codex/fix-avro-batch-reader-include

Conversation

@wgtmac

@wgtmac wgtmac commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: N/A

Fix AvroFileBatchReader header self-containment by including the headers used by its inline GetPreviousBatchFileRowId implementation.

Tests

  • cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DPAIMON_BUILD_TESTS=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5
  • Direct compile of src/paimon/format/avro/avro_file_batch_reader.cpp using the generated compile command plus local fmt/Arrow source include paths
  • git diff --check

Not run:

  • cmake --build build --target paimon_avro_file_format_objlib -j8 was blocked by bundled Arrow dependency download failure: Apache Thrift 0.16.0 mirror URLs returned 404.
  • pre-commit run --files src/paimon/format/avro/avro_file_batch_reader.h was not run because pre-commit is not installed in this environment.

API and Format

No public API, storage format, or protocol changes.

Documentation

No user-facing feature or documentation changes.

Generative AI tooling

Generated-by: OpenAI Codex

Copilot AI review requested due to automatic review settings July 15, 2026 03:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes AvroFileBatchReader header self-containment by adding direct includes for types/functions used in the header’s inline implementation.

Changes:

  • Add <limits> to support std::numeric_limits<uint64_t>::max() used in inline method/member initializers.
  • Add fmt/format.h to support fmt::format(...) used in the inline GetPreviousBatchFileRowId implementation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zjw1111 zjw1111 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

+1

@zjw1111
zjw1111 merged commit 1b0aa42 into alibaba:main Jul 15, 2026
9 of 15 checks passed
@wgtmac

wgtmac commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Thank you, @zjw1111!

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