Skip to content

Add support for passing tokens in Apache Arrow Flight Tester#58

Merged
CGodiksen merged 7 commits into
mainfrom
dev/token-support
Jul 3, 2026
Merged

Add support for passing tokens in Apache Arrow Flight Tester#58
CGodiksen merged 7 commits into
mainfrom
dev/token-support

Conversation

@CGodiksen

Copy link
Copy Markdown
Collaborator

This PR adds support for passing a bearer token when testing the different endpoints in the Apache Arrow Flight Tester. The PR also fixes a type issue related to utf8, updates the dependencies, and updates the protocol buffers to the latest version.

Note that since this functionality relies on the new auth support in ModelarDB, it should not be merged before ModelarData/ModelarDB-RS#405 is merged.

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 extends the Apache Arrow Flight Tester client so it can optionally attach a bearer token to Flight requests (enabling authenticated testing against ModelarDB), while also aligning schema/protobuf definitions with newer upstream expectations.

Changes:

  • Add optional bearer-token support to the Flight client wrapper and propagate the token to workload-balanced cloud-node queries.
  • Update string column types in test schemas from utf8() to string_view().
  • Update ModelarDB protocol buffers and generated Python stubs to include new configuration fields.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Apache-Arrow-Flight-Tester/wrapper.py Adds client middleware factory/middleware for bearer-token auth and wires it into FlightClientWrapper.
Apache-Arrow-Flight-Tester/server.py Reads token from MODELARDB_TOKEN, passes it into the server client, and propagates it to cloud-node clients.
Apache-Arrow-Flight-Tester/util.py Updates test table schemas to use pyarrow.string_view() for string columns.
Apache-Arrow-Flight-Tester/protobuf/protocol.proto Adds new configuration fields and updates enum/settings.
Apache-Arrow-Flight-Tester/protobuf/protocol_pb2.pyi Regenerated typing stubs reflecting updated protobuf schema.
Apache-Arrow-Flight-Tester/protobuf/protocol_pb2.py Regenerated protobuf runtime module reflecting updated serialized descriptors.
Files not reviewed (1)
  • Apache-Arrow-Flight-Tester/protobuf/protocol_pb2.py: Generated file

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

Comment thread Apache-Arrow-Flight-Tester/wrapper.py
Comment thread Apache-Arrow-Flight-Tester/protobuf/protocol.proto
@CGodiksen CGodiksen requested a review from skejserjensen June 28, 2026 16:44
@CGodiksen CGodiksen merged commit 5cc475b into main Jul 3, 2026
@CGodiksen CGodiksen deleted the dev/token-support branch July 3, 2026 11:07
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