meltano / sdk

Write 70% less code by using the SDK to build custom extractors and loaders that adhere to the Singer standard: https://sdk.meltano.com
https://sdk.meltano.com
Apache License 2.0
94 stars 67 forks source link

Partition Documentation hard to understand without an example #273

Closed MeltyBot closed 1 month ago

MeltyBot commented 2 years ago

Migrated from GitLab: https://gitlab.com/meltano/sdk/-/issues/275

Originally created by @vischous on 2021-11-18 21:14:30


https://sdk.meltano.com/en/latest/partitioning.html?highlight=partition#if-you-do-want-to-utilize-partitioning

I had a really hard time understanding how Partitions worked with state. Specifically :

  1. Understanding that each partition has it's own state tied to it was confusing for me. I think an example would be very helpful.
  2. I didn't understand what the list of dicts in the example actually did. I didn't realize that each item in the list was passed as a context to the record itself.
  3. I got the "lightbulb" moment after making a list of 5 dicts and running a connector printing what the current context/partition state was
MeltyBot commented 2 years ago

View 2 previous comments from the original issue on GitLab

stale[bot] commented 1 year ago

This has been marked as stale because it is unassigned, and has not had recent activity. It will be closed after 21 days if no further activity occurs. If this should never go stale, please add the evergreen label, or request that it be added.

edgarrmondragon commented 1 year ago

Still relevant

stale[bot] commented 1 month ago

This has been marked as stale because it is unassigned, and has not had recent activity. It will be closed after 21 days if no further activity occurs. If this should never go stale, please add the evergreen label, or request that it be added.

edgarrmondragon commented 1 month ago

Still relevant

edgarrmondragon commented 1 month ago

There's https://sdk.meltano.com/en/latest/implementation/state.html#partitioned-state-example, so I'm actually happy to close this.