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

chore: fix float32 NaN comparison + deprecate generator #2933

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

olavloite
Copy link
Collaborator

The FLOAT32 type was only added to the com.google.cloud.spanner.RandomResultSetGenerator, but that generator misses multiple other types. The one in the .connection package should be used instead. This PR therefore deprecates the one that should not be used, and updates all tests that used the old one.

It also adds FLOAT32 to the .connection.RandomResultSetGenerator, which is used by a larger number of tests. This discovered a bug in the FLOAT32 NaN comparison, which is also fixed in this PR.

Note: The commit is not marked with 'fix:', as the feature has not yet been released.

The FLOAT32 type was only added to the com.google.cloud.spanner.RandomResultSetGenerator,
but that generator misses multiple other types. The one in the .connection package
should be used instead. This PR therefore deprecates the one that should not be used,
and updates all tests that used the old one.

It also adds FLOAT32 to the .connection.RandomResultSetGenerator, which is used by
a larger number of tests. This discovered a bug in the FLOAT32 NaN comparison,
which is also fixed in this PR.

Note: The commit is not marked with 'fix:', as the feature has not yet been
released.
@olavloite olavloite requested a review from a team as a code owner February 29, 2024 17:24
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner API. labels Feb 29, 2024
@olavloite olavloite merged commit 2f6182e into main Feb 29, 2024
26 of 28 checks passed
@olavloite olavloite deleted the deprecate-reandom-result-generator branch February 29, 2024 18:20
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 API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants