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

feat(sink): support sink map to protobuf #18552

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

xxchan
Copy link
Member

@xxchan xxchan commented Sep 17, 2024

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • I have added test labels as necessary. See details.
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
  • All checks passed in ./risedev check (or alias, ./risedev c)
  • My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)
  • My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note

If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

Copy link
Member Author

xxchan commented Sep 17, 2024

@xxchan xxchan marked this pull request as ready for review September 17, 2024 03:50
Comment on lines -492 to -506
let encoded: Vec<u8> = m.ser_to().unwrap();
assert_eq!(
encoded,
// Hint: write the binary output to a file `test.binpb`, and view it with `protoc`:
// ```
// protoc --decode_raw < test.binpb
// protoc --decode=all_types.AllTypes all-types.proto < test.binpb
// ```
[
9, 0, 0, 0, 0, 0, 0, 17, 64, 21, 0, 0, 96, 64, 24, 22, 32, 23, 56, 48, 93, 26, 0,
0, 0, 97, 27, 0, 0, 0, 0, 0, 0, 0, 104, 1, 114, 10, 82, 105, 115, 105, 110, 103,
87, 97, 118, 101, 122, 2, 190, 239, 138, 1, 2, 8, 1, 146, 1, 3, 4, 0, 4, 186, 1, 3,
16, 184, 23
]
);
Copy link
Member Author

Choose a reason for hiding this comment

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

serialize map seems to be nondeterministic, so we can't test it in this way any more

@xxchan xxchan force-pushed the 09-13-feat_sink_support_sink_map_type_in_encoder branch from 9dd684e to 20bc6e2 Compare September 17, 2024 05:42
@xxchan xxchan force-pushed the 09-17-feat_sink_support_sink_map_to_protobuf branch from e25a617 to ead2ebd Compare September 17, 2024 05:42
@xxchan xxchan force-pushed the 09-13-feat_sink_support_sink_map_type_in_encoder branch from 20bc6e2 to 959ac33 Compare September 17, 2024 06:38
@xxchan xxchan force-pushed the 09-17-feat_sink_support_sink_map_to_protobuf branch from ead2ebd to 3f3a678 Compare September 17, 2024 06:38
@xxchan xxchan force-pushed the 09-13-feat_sink_support_sink_map_type_in_encoder branch from 959ac33 to 8f1c089 Compare September 17, 2024 06:52
@xxchan xxchan force-pushed the 09-17-feat_sink_support_sink_map_to_protobuf branch from 3f3a678 to 15be669 Compare September 17, 2024 06:52
@xxchan xxchan mentioned this pull request Sep 17, 2024
19 tasks
@xxchan xxchan force-pushed the 09-13-feat_sink_support_sink_map_type_in_encoder branch from 8f1c089 to 1739576 Compare September 17, 2024 07:48
@xxchan xxchan force-pushed the 09-17-feat_sink_support_sink_map_to_protobuf branch from 2cca4af to fb8580d Compare September 17, 2024 07:49
Base automatically changed from 09-13-feat_sink_support_sink_map_type_in_encoder to main September 19, 2024 14:57
@graphite-app graphite-app bot requested a review from a team September 19, 2024 14:59
@xxchan xxchan force-pushed the 09-17-feat_sink_support_sink_map_to_protobuf branch from fb8580d to dabf7e8 Compare September 19, 2024 15:03
Copy link
Contributor

@chenzl25 chenzl25 left a comment

Choose a reason for hiding this comment

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

LGTM

@xxchan xxchan added this pull request to the merge queue Sep 20, 2024
Merged via the queue into main with commit 5aca914 Sep 20, 2024
35 of 36 checks passed
@xxchan xxchan deleted the 09-17-feat_sink_support_sink_map_to_protobuf branch September 20, 2024 06:15
xxchan added a commit that referenced this pull request Sep 20, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants