Skip to content

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

Merged
jbonofre merged 5 commits into
apache:mainfrom
ennuite:fix-database-metadata-npe
Mar 11, 2026
Merged

GH-994: Fix DatabaseMetaData NPEs when SqlInfo is unavailable#995
jbonofre merged 5 commits into
apache:mainfrom
ennuite:fix-database-metadata-npe

Conversation

@ennuite

Copy link
Copy Markdown
Contributor

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.

@lidavidmlidavidm 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-actionsgithub-actionsBot added this to the 19.0.0 milestone Feb 2, 2026
@ennuite

Copy link
Copy Markdown
ContributorAuthor

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

@jbonofre
jbonofre merged commit bdec833 into apache:mainMar 11, 2026
26 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fixPRs 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

3 participants

@ennuite@jbonofre@lidavidm