Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

feat: allows for getting json columns using getValue#1699

Merged
thiagotnunes merged 7 commits intomainfrom
json-get-value-fix
Feb 21, 2022
Merged

feat: allows for getting json columns using getValue#1699
thiagotnunes merged 7 commits intomainfrom
json-get-value-fix

Conversation

@thiagotnunes
Copy link
Copy Markdown
Contributor

Allows for getting JSON values using resultSet.getValue(). This was not possible before, because a mapping was missing.

Overrides the getString method in json values to allow for getString and getStringArray on json values.

Allows for getting JSON values using resultSet.getValue().
Overrides the getString method in json values to allow for getString and
getStringArray on json values.
@thiagotnunes thiagotnunes requested a review from a team February 18, 2022 08:47
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the googleapis/java-spanner API. label Feb 18, 2022

private void assertThrowsWithMessage(Supplier<?> supplier, String message) {
try {
supplier.get();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: I think you could also just use assertThrows(...) for this instead of a try-catch-block.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think we can, because we match partially on the message of the exception

thiagotnunes and others added 2 commits February 19, 2022 12:54
@thiagotnunes thiagotnunes requested a review from a team February 19, 2022 01:56
Comment thread README.md

```Groovy
implementation 'com.google.cloud:google-cloud-spanner:6.19.0'
implementation 'com.google.cloud:google-cloud-spanner:6.19.1'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

(This is a change from owlbot)

Comment thread README.md

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.19.0"
libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.19.1"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

(This is a change from owlbot)

Copy link
Copy Markdown
Contributor

@ansh0l ansh0l left a comment

Choose a reason for hiding this comment

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

LGTM

@thiagotnunes thiagotnunes merged commit a51973b into main Feb 21, 2022
@thiagotnunes thiagotnunes deleted the json-get-value-fix branch February 21, 2022 03:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/java-spanner API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants