What happened?
When FlightSqlStatement calls preparedStatement.close(); it does not include the headers. With some arrow-flight servers, this results in an authentication issue.
Calling preparedStatement.close(connectionOptions); should be sufficient.
Stack Trace
No response
How can we reproduce the bug?
This would be reproducible when targeting a Starrocks database. I've included a basic client that should connect to a starrocks instance and reproduce the issue.
PreparedStatementAuthReproducer.java
Environment/Setup
No response
What happened?
When FlightSqlStatement calls preparedStatement.close(); it does not include the headers. With some arrow-flight servers, this results in an authentication issue.
Calling
preparedStatement.close(connectionOptions);should be sufficient.Stack Trace
No response
How can we reproduce the bug?
This would be reproducible when targeting a Starrocks database. I've included a basic client that should connect to a starrocks instance and reproduce the issue.
PreparedStatementAuthReproducer.java
Environment/Setup
No response