-
Notifications
You must be signed in to change notification settings - Fork 274
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
[Feature]Sharding support 1 #18533
[Feature]Sharding support 1 #18533
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
e385665
to
a0d8a6d
Compare
# Conflicts: # pkg/sql/compile/compile.go # pkg/vm/engine/disttae/merge.go
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #16471
What this PR does / why we need it:
Todo:
PR Type
Enhancement
Description
ReadNext
,ReadClose
, andReadCollectTombstones
.Changes walkthrough 📝
8 files
engine_mock.go
Update mock methods with new parameters for tombstone handling
pkg/frontend/test/engine_mock.go
ApplyPersistedTombstones
andApplyTombstones
to include additional parameters.signatures.
txn_table.go
Enhance tombstone collection with policy-based logic
pkg/vm/engine/disttae/txn_table.go
policy
to theCollectTombstones
method.uncommitted tombstones.
txn_table_sharding.go
Implement sharding support for tombstone collection
pkg/vm/engine/disttae/txn_table_sharding.go
CollectTombstones
with sharding support.shardingReader
struct and methods.txn_table_sharding_handle.go
Add handlers for sharding read operations
pkg/vm/engine/disttae/txn_table_sharding_handle.go
ReadNext
,ReadClose
, andReadCollectTombstones
.environments.
server.go
Update shard service with new read operations
pkg/cnservice/server.go
ReadNext
,ReadClose
, andReadCollectTombstones
.compile.go
Use new tombstone collection policy in compile
pkg/sql/compile/compile.go
collectTombstones
function to use new tombstone collectionpolicy.
types.go
Add tombstone collection policy type and constants
pkg/vm/engine/types.go
TombstoneCollectPolicy
type and constants.CollectTombstones
method signature to include policyparameter.
shard.proto
Extend proto definitions for sharding operations
proto/shard.proto
operations.
ReadParam
to include new parameters for sharding operations.1 files
shard.pb.go
...
pkg/pb/shard/shard.pb.go
...