Skip to content

Commit ae5067f

Browse files
committed
[fix](test) Pad Flight query IDs for pipeline cleanup checks
1 parent bf96e70 commit ae5067f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎regression-test/suites/arrow_flight_sql_p0/test_flight_cancel_cleanup.groovy‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ suite("test_flight_cancel_cleanup", "arrow_flight_sql") {
7373
assertTrue(info.endpoints.size() > 1, "Expected distributed Flight result endpoints")
7474
}
7575
def ids = info.endpoints.collect { endpoint ->
76-
Any.parseFrom(endpoint.ticket.bytes).unpack(FlightSql.TicketStatementQuery.class)
76+
def queryId = Any.parseFrom(endpoint.ticket.bytes).unpack(FlightSql.TicketStatementQuery.class)
7777
.statementHandle.toStringUtf8().split("&")[0]
78+
// Flight tickets omit leading zeroes; the BE diagnostic API requires two 16-digit halves.
79+
queryId.split("-").collect { it.padLeft(16, "0") }.join("-")
7880
}.unique()
7981
// Abort only one endpoint; the cancellation must reach every participating BE.
8082
[info.endpoints[0]].each { endpoint ->

0 commit comments

Comments
 (0)