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: support float32 #1518

Merged
merged 8 commits into from Mar 7, 2024
Merged

feat: support float32 #1518

merged 8 commits into from Mar 7, 2024

Conversation

olavloite
Copy link
Collaborator

Adds support for the FLOAT32 / real data type.

Adds support for the FLOAT32 / real data type.
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Feb 29, 2024
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Mar 5, 2024
@olavloite olavloite marked this pull request as ready for review March 5, 2024 09:29
@olavloite olavloite requested review from a team as code owners March 5, 2024 09:29
@olavloite olavloite added the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 5, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 5, 2024
@olavloite olavloite requested a review from ankiaga March 5, 2024 11:18
parameters.setParameter(parameterIndex, value, Types.FLOAT);
parameters.setParameter(parameterIndex, value, Types.REAL);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Types.FLOAT is a synonym for Types.DOUBLE in JDBC. Both represent a 64-bit floating point value. Types.REAL is the type code that should be used for 32-bit floating point values.

@olavloite olavloite requested a review from arawind March 5, 2024 11:51
Copy link

@arawind arawind left a comment

Choose a reason for hiding this comment

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

LGTM with minor comments

@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: xl Pull request size is extra large. labels Mar 7, 2024
@olavloite olavloite added the automerge Merge the pull request once unit tests and other checks pass. label Mar 7, 2024
@olavloite olavloite merged commit 635ac41 into main Mar 7, 2024
26 checks passed
@olavloite olavloite deleted the float32 branch March 7, 2024 15:24
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner-jdbc API. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants