Skip to content

Comments

GH-994: Fix DatabaseMetaData NPEs when SqlInfo is unavailable#995

Open
ennuite wants to merge 5 commits intoapache:mainfrom
ennuite:fix-database-metadata-npe
Open

GH-994: Fix DatabaseMetaData NPEs when SqlInfo is unavailable#995
ennuite wants to merge 5 commits intoapache:mainfrom
ennuite:fix-database-metadata-npe

Conversation

@ennuite
Copy link
Contributor

@ennuite ennuite commented Feb 2, 2026

What's Changed

Multiple DatabaseMetaData methods had NPEs when the method
ArrowDatabaseMetadata.getSqlInfoAndCacheIfCacheIsEmpty(final SqlInfo sqlInfoCommand, final Class<T> desiredType)
returned null.

Now the method never returns null. If the database server does not provide the requested info, either a sensible default is returned or a SQLException is thrown.

Closes #994.

@github-actions

This comment has been minimized.

@lidavidm lidavidm added the bug-fix PRs that fix a big. label Feb 2, 2026
@ennuite ennuite marked this pull request as ready for review February 2, 2026 02:28
@github-actions github-actions bot added this to the 19.0.0 milestone Feb 2, 2026
@ennuite
Copy link
Contributor Author

ennuite commented Feb 23, 2026

@jbonofre will this go into 19.0.0? It's a simple fix, most of the PR is a test.

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.

[FlightSQL][JDBC] NullPointerException in DatabaseMetadata methods when SqlInfo is unavailable

2 participants