Skip to content

Use Protocol buffers for Apache Arrow Flight testers - #50

Merged
CGodiksen merged 13 commits into
mainfrom
dev/protocol-buffers
Jul 4, 2025
Merged

Use Protocol buffers for Apache Arrow Flight testers#50
CGodiksen merged 13 commits into
mainfrom
dev/protocol-buffers

Conversation

@CGodiksen

Copy link
Copy Markdown
Collaborator

This PR updates the Apache Arrow Flight testers to match the changes made in ModelarData/ModelarDB-RS#335. Note that the protobuf definition file has been copied over and the compiled Python Protocol Buffer definition has been included in git for simplicity.

This PR should not be merged before ModelarData/ModelarDB-RS#335 has been merged.

@CGodiksen CGodiksen self-assigned this Jun 12, 2025
@CGodiksen
CGodiksen requested a review from Copilot June 12, 2025 08:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the Apache Arrow Flight testers to use Protocol Buffers for configuration management and node registration, aligning with the changes in the upstream PR.

  • Refactors server and manager clients to serialize and parse protobuf messages instead of plain-encoded strings.
  • Removes legacy helper functions (e.g., encode_argument) and related pandas-dependent metrics collection.
  • Introduces complete protobuf definitions and compiled files to support the new API.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Apache-Arrow-Flight-Tester/server.py Updated configuration and update methods to use Protocol Buffers instead of raw encoding.
Apache-Arrow-Flight-Tester/protobuf/protocol_pb2.pyi Added/updated type stubs for the protobuf messages.
Apache-Arrow-Flight-Tester/protobuf/protocol_pb2.py Included the generated protobuf Python module from protocol.proto.
Apache-Arrow-Flight-Tester/protobuf/protocol.proto Added the protobuf definition for ModelarDB Flight protocol.
Apache-Arrow-Flight-Tester/manager.py Modified node registration and database initialization to use protobuf messages.
Apache-Arrow-Flight-Tester/common.py Removed the now-obsolete encode_argument function.
Comments suppressed due to low confidence (1)

Apache-Arrow-Flight-Tester/server.py:35

  • [nitpick] Consider renaming the local variable to avoid shadowing the method name; for example, use 'config_update' instead.
update_configuration = protocol_pb2.UpdateConfiguration()

@CGodiksen
CGodiksen requested a review from skejserjensen June 12, 2025 08:47
@CGodiksen
CGodiksen merged commit 29061fd into main Jul 4, 2025
@CGodiksen
CGodiksen deleted the dev/protocol-buffers branch July 4, 2025 07:36
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