GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: adds getValue to ResultSet by thiagotnunes · Pull Request #1073 · googleapis/java-spanner
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
ConversationAdds a generic getValue method to the result set. It can be used to retrieve any type from the database. Clirr does not support java 8 default implementations, so it thinks this are breaking changes. These in fact are not breaking changes, since we provide implementations in the interfaces.
thiagotnunes
commented
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clirr does not support Java 8 features, so it thinks these are breaking changes, where in fact we have provided default implementations for the added interface methods. No need for a major release here.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
olavloite
reviewed
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Adds a less intrusive implementation of getValueInternal for the AbstractResultSet.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
thiagotnunes
commented
Uh oh!
There was an error while loading. Please reload this page.
olavloite
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it would be good to add null values for
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These throw a
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
| * @throws IllegalStateException if {@code isNull()} or the value is not of the expected type | ||
| */ | ||
| abstract List<Struct> getStructArray(); | ||
| public abstract List<Struct> getStructArray(); |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@olavloite I made this method public. It surprising me that this was not public before, since users can SELECT ARRAY(SELECT STRUCT ...) and would not be able to get the results.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## master #1073 +/- ## ============================================ - Coverage 85.17% 84.93% -0.25% - Complexity 2719 2727 +8 ============================================ Files 155 156 +1 Lines 14351 14403 +52 Branches 1358 1380 +22 ============================================ + Hits 12224 12233 +9 - Misses 1558 1603 +45 + Partials 569 567 -2 Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| throw new UnsupportedOperationException("method should be overwritten"); | ||
| } | ||
|
|
||
| /** Returns the value of a non-{@code NULL} column as a {@link Value}. */ |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
nit: This should be updated to indicate that this method can be called for columns that contain a null value, and what the behavior is when the value is null.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.