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

Fixes #1429: add ITs to verify handling of "fractional ints" (allowed/non-allowed) #1432

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

tatu-at-datastax
Copy link
Contributor

What this PR does:

Adds more testing for conversion to CQL int types; specifically Integration Tests to verify end-to-end handling (basic unit tests exists but cannot fully verify scientific notation f.ex).

Which issue(s) this PR fixes:
Fixes #1429

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@tatu-at-datastax tatu-at-datastax self-assigned this Sep 18, 2024
@tatu-at-datastax tatu-at-datastax requested a review from a team as a code owner September 18, 2024 00:27
@@ -205,52 +193,6 @@ public void findOneDocIdKey() {

@Nested
@Order(3)
@TestClassOrder(ClassOrderer.OrderAnnotation.class)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Move this test to new, refactored InsertOneTableIntegrationTests (see below).


@Nested
@Order(1)
class InsertTextColumns {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved from test above since it really exercises InsertOne, not FindOne.


@Nested
@Order(2)
class InsertIntColumns {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

And these are the new tests for #1429 .

Copy link
Contributor

@Yuqi-Du Yuqi-Du left a comment

Choose a reason for hiding this comment

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

LGTM!

@Yuqi-Du Yuqi-Du merged commit 2772276 into main Sep 18, 2024
3 checks passed
@Yuqi-Du Yuqi-Du deleted the tatu/1429-test-for-fractional-with-ints branch September 18, 2024 16:18
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants