Skip to content

Conversation

@tabVersion
Copy link
Contributor

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.

What's changed and what's your intention?

PLEASE DO NOT LEAVE THIS EMPTY !!!

Please explain IN DETAIL what the changes are in this PR and why they are needed:

as title, add kinesis properties, allowing start consuming from the given position, earliest and latest.

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • All checks passed in ./risedev check (or alias, ./risedev c)

Documentation

If your pull request contains user-facing changes, please specify the types of the changes, and create a release note. Otherwise, please feel free to remove this section.

Types of user-facing changes

Please keep the types that apply to your changes, and remove those that do not apply.

  • Connector (sources & sinks)

Release note

add two fields in WITH options

  • scan.startup.mode: specify the position for start consuming. accept values: latest, earliest, sequence_number, default earliest
  • scan.startup.sequence_number: specify a offset to start consuming. This field is only available and required when setting scan.startup.mode to sequence_number

Refer to a related PR or issue link (optional)

Signed-off-by: tabVersion <[email protected]>
@github-actions github-actions bot added the type/fix Type: Bug fix. Only for pull requests. label Nov 11, 2022
@codecov
Copy link

codecov bot commented Nov 11, 2022

Codecov Report

Merging #6317 (b154bed) into main (734b452) will decrease coverage by 0.00%.
The diff coverage is 75.40%.

@@            Coverage Diff             @@
##             main    #6317      +/-   ##
==========================================
- Coverage   74.41%   74.41%   -0.01%     
==========================================
  Files         952      953       +1     
  Lines      154999   155119     +120     
==========================================
+ Hits       115345   115427      +82     
- Misses      39654    39692      +38     
Flag Coverage Δ
rust 74.41% <75.40%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/compute/src/rpc/service/stream_service.rs 0.00% <0.00%> (ø)
src/connector/src/source/kinesis/mod.rs 0.00% <ø> (ø)
src/connector/src/source/kinesis/source/reader.rs 0.00% <0.00%> (ø)
src/meta/src/barrier/mod.rs 86.23% <0.00%> (ø)
...age/src/hummock/compactor/shared_buffer_compact.rs 79.83% <46.66%> (-0.86%) ⬇️
src/storage/src/hummock/shared_buffer/mod.rs 91.87% <72.72%> (+0.08%) ⬆️
src/meta/src/hummock/manager/mod.rs 73.68% <76.19%> (+0.05%) ⬆️
...ge/src/hummock/local_version/local_version_impl.rs 80.09% <77.77%> (+0.23%) ⬆️
src/storage/hummock_sdk/src/lib.rs 75.80% <85.71%> (+5.07%) ⬆️
src/meta/src/hummock/manager/tests.rs 92.26% <100.00%> (+0.03%) ⬆️
... and 12 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tabVersion tabVersion added the user-facing-changes Contains changes that are visible to users label Nov 11, 2022
Copy link
Contributor

@waruto210 waruto210 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@WingsUpete WingsUpete left a comment

Choose a reason for hiding this comment

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

Seems clear for me to understand

@neverchanje
Copy link
Contributor

LGTM. But the title is somewhat mismatched with the content. I feel it's more of a "feat" rather than a "fix". And without this PR I think kinesis can still "work".

"feat(connector): support options to specify offsets for kinesis" would be more appropriate.

@tabVersion
Copy link
Contributor Author

But the title is somewhat mismatched with the content. I feel it's more of a "feat" rather than a "fix".

I insist the pr be a fix. we would get into an unreachable arm before this. 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/fix Type: Bug fix. Only for pull requests. user-facing-changes Contains changes that are visible to users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants