Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for JSON data type #39

Merged
merged 3 commits into from
Sep 5, 2021
Merged

feat: add support for JSON data type #39

merged 3 commits into from
Sep 5, 2021

Conversation

olavloite
Copy link
Collaborator

@olavloite olavloite commented Sep 1, 2021

Adds support for the new JSON data type.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 1, 2021
@@ -146,6 +146,15 @@ func (r *rows) Next(dest []driver.Value) error {
} else {
dest[i] = nil
}
case sppb.TypeCode_JSON:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This and the below addition for ARRAY<JSON> are the only functional changes that are needed to support the new data type. All other changes are tests (and workarounds for tests on the emulator that does not yet support JSON).

@olavloite olavloite marked this pull request as ready for review September 1, 2021 09:39
Copy link
Collaborator

@hengfengli hengfengli left a comment

Choose a reason for hiding this comment

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

LGTM.

@olavloite olavloite merged commit ef52036 into main Sep 5, 2021
@olavloite olavloite deleted the json-data-type branch September 5, 2021 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants