Skip to content

Commit 1a44a65

Browse files
committed
fix: move TICKET_ALLOWS_METADATA to the app_metadata on the endpoint
1 parent ecca6ac commit 1a44a65

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/query_farm_server_base/flight_handling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ def endpoint(*, ticket_data: T, allow_metadata: bool) -> flight.FlightEndpoint:
6464
packed_data = msgpack.packb(ticket_data.model_dump())
6565

6666
return flight.FlightEndpoint(
67-
(b"<TICKET_ALLOWS_METADATA>" + packed_data) if allow_metadata else packed_data,
67+
packed_data,
6868
[
6969
# This is the location.
7070
"arrow-flight-reuse-connection://?"
7171
],
72+
b"<TICKET_ALLOWS_METADATA>" if allow_metadata else b"",
7273
)
7374

7475

0 commit comments

Comments
 (0)