FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-942: Fix JDBC Connection.setCatalog() by eickler · Pull Request #943 · apache/arrow-java · GitHub

GH-942: Fix JDBC Connection.setCatalog() - #943

Merged
jbonofre merged 2 commits into
apache:mainfrom
eickler:fix-jdbc-set-catalog
Jan 5, 2026
Merged

GH-942: Fix JDBC Connection.setCatalog()#943
jbonofre merged 2 commits into
apache:mainfrom
eickler:fix-jdbc-set-catalog

Conversation

eickler commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

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.

This comment has been minimized.

eickler commented Jan 4, 2026

Copy link
Copy Markdown
Contributor Author

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 added the bug-fix PRs that fix a big. label Jan 4, 2026
github-actions Bot added this to the 18.4.0 milestone Jan 4, 2026

lidavidm commented Jan 5, 2026

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

nit: same here

jbonofre commented Jan 5, 2026

Copy link
Copy Markdown
Member

LGTM, I'm merging.

jbonofre merged commit b9e40fa into apache:main Jan 5, 2026
21 of 27 checks passed
ennuite pushed a commit to ennuite/arrow-java that referenced this pull request Jan 8, 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 apache#942.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL