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 type #1180

Merged
merged 4 commits into from
Jul 18, 2024
Merged

Conversation

arawind
Copy link
Contributor

@arawind arawind commented Jul 9, 2024

Adds support for FLOAT32 to the Spanner Hibernate dialect. Note that Hibernate by default maps java.lang.float fields to the JDBC type FLOAT, which is the equivalent of DOUBLE, meaning that these fields by default use FLOAT64 on Spanner.

Add @JdbcTypeCode(Types.REAL) to your field declaration to ensure that a FLOAT32 column is used.

@arawind arawind force-pushed the float32 branch 2 times, most recently from 3202f5e to 39bfc61 Compare July 9, 2024 13:22
@arawind
Copy link
Contributor Author

arawind commented Jul 17, 2024

@olavloite can you please review these changes?

@olavloite olavloite merged commit ada40bb into GoogleCloudPlatform:master Jul 18, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants