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

Convert InsertOperationTest to use native CQL not validating Bridge #684

Merged
merged 15 commits into from
Nov 30, 2023

Conversation

tatu-at-datastax
Copy link
Contributor

What this PR does:

Converts "InsertOperationTest" to work with new CQL-based access

Which issue(s) this PR fixes:
Fixes C2-3098

Checklist

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

@tatu-at-datastax tatu-at-datastax changed the title (WIP) Convert InsertOperationTest to use native CQL not validating Bridge Convert InsertOperationTest to use native CQL not validating Bridge Nov 29, 2023
@tatu-at-datastax tatu-at-datastax marked this pull request as ready for review November 29, 2023 19:38
@tatu-at-datastax tatu-at-datastax requested a review from a team as a code owner November 29, 2023 19:38
@tatu-at-datastax tatu-at-datastax self-assigned this Nov 29, 2023
@@ -31,10 +32,10 @@ public static Set<String> getSetValue(Set<JsonPath> from) {
}

public static Set<String> getStringSetValue(Set<String> from) {
return from.stream().map(val -> val.toString()).collect(Collectors.toSet());
return new LinkedHashSet<>(from);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No point calling String.toString() or using stream operation; if we want a copy create directly.
But caller probably shouldn't need to call this method at all TBH.

@tatu-at-datastax tatu-at-datastax merged commit a8a807d into main Nov 30, 2023
3 checks passed
@tatu-at-datastax tatu-at-datastax deleted the tatu/c2-3098-convert-insert-oper-test branch November 30, 2023 19:24
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