Conversation
WalkthroughAdds an IoRouter dispatcher and refactors StandaloneCluster/ManagedCluster to delegate load/save operations to it; introduces CloudJob/CloudIoSpecs model, moves BulkProcessor import into cratedb-specific bulk module, adjusts TableAddress truthiness, and updates tests/docs/examples and several imports. Changes
Sequence Diagram(s)sequenceDiagram
participant Cluster as StandaloneCluster
participant Router as IoRouter
participant Kinesis as KinesisAdapter
participant Dynamo as DynamoDBAdapter
participant Mongo as MongoDBAdapter
participant Delta as DeltaLakeAdapter
Cluster->>Router: load_table(source, target, transformation)
Router->>Router: parse source URL scheme
alt kinesis scheme
Router->>Kinesis: kinesis_relay(source_url, target_url, recipe)
Kinesis-->>Router: bool
else dynamodb scheme
Router->>Dynamo: dynamodb_copy(source, target, progress=True)
Dynamo-->>Router: bool
else mongodb or +cdc
Router->>Mongo: mongodb_copy / mongodb_relay_cdc(...)
Mongo-->>Router: bool
else deltalake
Router->>Delta: from_deltalake(source, target)
Delta-->>Router: bool
else unsupported
Router-->>Cluster: NotImplementedError
end
Router-->>Cluster: bool result
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
cd8939d to
2e8cda0
Compare
74f2ced to
c14fcc4
Compare
test_kinesis_latest_dynamodb_cdc_insert_update - assert 0 == 1
Just maintenance: Refactoring and spring cleaning around the
ctk.iopackage and friends, nothing wild.