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

Java: Adding command COPY #1532

Merged
merged 1 commit into from
Jun 7, 2024
Merged

Conversation

tjzhang-BQ
Copy link
Collaborator

  • Java: Adding command COPY

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tjzhang-BQ tjzhang-BQ requested a review from a team as a code owner June 6, 2024 00:53
@Yury-Fridlyand Yury-Fridlyand added the java issues and fixes related to the java client label Jun 6, 2024
@@ -946,6 +948,9 @@ InfScoreBound.NEGATIVE_INFINITY, new ScoreBoundary(3, false), new Limit(1, 2)),
transaction.functionDelete("LIB");
results.add(Pair.of(FunctionDelete, buildArgs("LIB")));

transaction.copy("key1", "key2", true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

test copy with DB index argument

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

copy with DB does not work under cluster mode, so it was tested under /standalone/CommandTests.java, is it required here? transaction here is declared as a superclass object and doesn't pull up the copy() signature that is under /api/models/Transaction.java

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see it is already added. I was confused that number of UTs is less than number of commands added to transaction classes.

* Java: Adding command COPY
@acarbonetto acarbonetto merged commit a72a75b into valkey-io:main Jun 7, 2024
46 checks passed
@tjzhang-BQ tjzhang-BQ deleted the java/integ_tjz_copy branch June 7, 2024 20:17
yipin-chen pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 7, 2024
Java: Adding command COPY (#340)

* Java: Adding command COPY
cyip10 pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 24, 2024
Java: Adding command COPY (#340)

* Java: Adding command COPY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java issues and fixes related to the java client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants