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

Go: Add command ZScan #2950

Merged
merged 2 commits into from
Jan 15, 2025
Merged

Go: Add command ZScan #2950

merged 2 commits into from
Jan 15, 2025

Conversation

tjzhang-BQ
Copy link
Collaborator

@tjzhang-BQ tjzhang-BQ commented Jan 14, 2025

Issue link

This Pull Request is linked to issue (URL): #2878

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one issue.
  • Commit message has a detailed description of what changed and why.
  • Tests are added or updated.
  • CHANGELOG.md and documentation files are updated.
  • Destination branch is correct - main or release
  • Create merge commit if merging release branch into main, squash otherwise.

@tjzhang-BQ tjzhang-BQ marked this pull request as ready for review January 14, 2025 04:09
@tjzhang-BQ tjzhang-BQ requested a review from a team as a code owner January 14, 2025 04:09
@Yury-Fridlyand Yury-Fridlyand added the go golang wrapper label Jan 14, 2025
go/api/base_client.go Show resolved Hide resolved
go/api/options/zscan_options.go Outdated Show resolved Hide resolved
go/integTest/shared_commands_test.go Outdated Show resolved Hide resolved
if err != nil {
return CreateNilStringResult(), nil, err
}
return handleScanResponse(result)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you update please handleScanResponse to return (string, []string, error)? Those strings are never nil.
You can do it in another PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think I will do this in a separate PR for existing scan commands. Although when I was looking at the java code, the zscan API does also use the hanldeArrayOrNullResponse function when it takes binary inputs, is that a known behavior?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could be a mistake. Feel free to fix that!

Copy link
Collaborator

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

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

CI is red

go/api/base_client.go Outdated Show resolved Hide resolved
Signed-off-by: TJ Zhang <tj.zhang@improving.com>
Signed-off-by: TJ Zhang <tj.zhang@improving.com>
@tjzhang-BQ tjzhang-BQ merged commit dbb83b6 into main Jan 15, 2025
17 of 18 checks passed
@tjzhang-BQ tjzhang-BQ deleted the go/tjz-zscan branch January 15, 2025 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go golang wrapper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants