forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-40249: [Java] Fix NPE in ArrowDatabaseMetadata
### Rationale for this change When retrieving database metadata using the JDBC driver, some data such as SQL keywords could be null. Before this change, an NPE would be thrown when trying to convert the list of SQL keywords into a String. ### What changes are included in this PR? The following database metadata fields: * SQL keywords * Numeric functions * String functions * System functions * Time/date functions will convert to an empty string when they are null. ### Are these changes tested? A unit test has been added to verify that the fields above are converted to the empty string when null, with no exceptions thrown. ### Are there any user-facing changes? The fields above will now return an empty string rather than throw an NPE.
- Loading branch information
1 parent
8c09c7f
commit 2a51fa6
Showing
2 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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