Skip to content

java: Include headers/options when calling preparedStatement.close() #4512

Description

@Kyperr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions