-
Notifications
You must be signed in to change notification settings - Fork 277
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
sync to 1.2: supporting reader linear search on unsorted fake pk col #16461
sync to 1.2: supporting reader linear search on unsorted fake pk col #16461
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Review 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue ##13959
What this PR does / why we need it:
supporting reader linear search on unsorted fake pk col
PR Type
Enhancement, Tests
Description
search.go
.disttae/reader.go
to use newblockio.ReadFilter
structure.txn_table.go
to accommodate new filter type.util.go
to support new filter structure and unsorted search functions.util_test.go
for new filter structure.blockio/read.go
to useReadFilterSearchFuncType
and updatedReadFilter
structure.logtail/snapshot.go
to replacenil
filters withblockio.ReadFilter{}
.Changes walkthrough 📝
6 files
search.go
Add linear search functions for unordered vectors.
pkg/container/vector/search.go
types.
slices and prefixes.
reader.go
Update filter handling in disttae reader.
pkg/vm/engine/disttae/reader.go
nil
filters withblockio.ReadFilter{}
.txn_table.go
Refactor filter handling in txn_table.
pkg/vm/engine/disttae/txn_table.go
ReadFilter
withReadFilterSearchFuncType
.util.go
Enhance util functions for new filter structure.
pkg/vm/engine/disttae/util.go
getNonCompositePKSearchFuncByExpr
to return new filterstructure.
read.go
Refactor blockio read functions for new filter structure.
pkg/vm/engine/tae/blockio/read.go
ReadFilterSearchFuncType
and updatedReadFilter
structure.ReadByFilter
andBlockRead
functions to use new filterstructure.
snapshot.go
Update snapshot logtail for new filter structure.
pkg/vm/engine/tae/logtail/snapshot.go
nil
filters withblockio.ReadFilter{}
inBlockRead
calls.3 files
util_test.go
Update util tests for new filter structure.
pkg/vm/engine/disttae/util_test.go
SortedSearchFunc
from new filter structure.block_reader_filter.result
Add test results for fake PK linear search.
test/distributed/cases/disttae_filters/reader_filters/block_reader_filter.result
block_reader_filter.sql
Add SQL tests for fake PK linear search.
test/distributed/cases/disttae_filters/reader_filters/block_reader_filter.sql