Skip to content

Conversation

@eickler
Copy link
Contributor

@eickler eickler commented Jan 4, 2026

What's Changed

Connection.setCatalog() is not silently ignored anymore (through the default implementation in Calcite) but instead it updates the catalog session option in the same way as during the initial connection.

Closes #942.

@github-actions

This comment has been minimized.

@eickler
Copy link
Contributor Author

eickler commented Jan 4, 2026

Apologies for the larger than needed PR. I couldn't get the tests passing without running spotless:apply and for some reason that reformatted parts that I did not even touch.

@lidavidm lidavidm added the bug-fix PRs that fix a big. label Jan 4, 2026
@github-actions github-actions bot added this to the 18.4.0 milestone Jan 4, 2026
@lidavidm
Copy link
Member

lidavidm commented Jan 5, 2026

CC @jbonofre @laurentgo any comments?

statementHandlePreparedStatementMap.remove(new StatementHandleKey(statementHandle));
// Testing if the prepared statement was created because the statement can be not created until
// Testing if the prepared statement was created because the statement can be
// not created until
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this change is unecessary (I guess it's due to reformating)

return new ExecuteResult(Collections.singletonList(metaResultSet));
} catch (SQLTimeoutException e) {
// So far AvaticaStatement(executeInternal) only handles NoSuchStatement and Runtime
// So far AvaticaStatement(executeInternal) only handles NoSuchStatement and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: same here

@jbonofre
Copy link
Member

jbonofre commented Jan 5, 2026

LGTM, I'm merging.

@jbonofre jbonofre merged commit b9e40fa into apache:main Jan 5, 2026
21 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PRs that fix a big.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flight-sql-jdbc-driver: Connection.setCatalog() is silently ignored

3 participants