-
Notifications
You must be signed in to change notification settings - Fork 279
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
Make sels int64 #17755
Make sels int64 #17755
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 ✨
|
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 ✨
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think sels in shuffle.go should not change to int64, which will cause more memory allocation
this sels size should not depends on the amount of data pass through. for shuffle, it is not a significant overhead. This is a non issue. |
tae code relies on it.
Much better than my UnionInt32
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #17754
What this PR does / why we need it:
Unfuck our code.
PR Type
Enhancement, Tests
Description
int64
instead ofint32
.[]int64
instead of[]int32
.int64
andint32
.int64
.sels
field in multiple structs and functions from[]int32
to[]int64
.Changes walkthrough 📝
15 files
search.go
Update vector search functions to use int64
pkg/container/vector/search.go
[]int32
to[]int64
.int64
instead ofint32
.vector.go
Refactor vector union functions to support int64 and int32
pkg/container/vector/vector.go
Union
function to accept[]int64
instead of[]int32
.UnionInt32
function to handle[]int32
.unionT
function to handle bothint32
andint64
.utils.go
Modify ConstructRowidColumnToWithSels to use int64
pkg/objectio/utils.go
ConstructRowidColumnToWithSels
function to accept[]int64
instead of
[]int32
.join.go
Update AntiJoin probe function to use int64
pkg/sql/colexec/anti/join.go
eligible
slice from[]int32
to[]int64
.external.go
Modify external batch processing to use int64
pkg/sql/colexec/external/external.go
sels
slice from[]int32
to[]int64
.join.go
Update SemiJoin probe function to use int64
pkg/sql/colexec/semi/join.go
eligible
slice from[]int32
to[]int64
.shuffle.go
Refactor shuffle handling to use int64
pkg/sql/colexec/shuffle/shuffle.go
sels
slices from[]int32
to[]int64
.int64
.types.go
Update container struct to use int64 for sels
pkg/sql/colexec/shuffle/types.go
sels
field incontainer
struct from[][]int32
to[][]int64
.func_unary.go
Modify unary function to use int64 for sels
pkg/sql/plan/function/func_unary.go
sels
slice from[]int32
to[]int64
.pk_filter.go.go
Update PK filter search functions to use int64
pkg/vm/engine/disttae/pk_filter.go.go
[]int64
instead of[]int32
.txn_table_sharding_handle.go
Remove redundant error handling in txn_table_sharding_handle
pkg/vm/engine/disttae/txn_table_sharding_handle.go
util.go
Modify LinearSearchOffsetByValFactory to use int64
pkg/vm/engine/disttae/util.go
LinearSearchOffsetByValFactory
to return[]int64
instead of[]int32
.read.go
Update blockio read functions to use int64
pkg/vm/engine/tae/blockio/read.go
ReadFilterSearchFuncType
to return[]int64
instead of[]int32
.[]int64
forsels
.vector.go
Modify vector container to use int64 for sels
pkg/vm/engine/tae/containers/vector.go
sels
slice from[]int32
to[]int64
.base.go
Update table base to use int64 for sels
pkg/vm/engine/tae/tables/base.go
sels
slice from[]int32
to[]int64
.1 files
utils_test.go
Modify test cases for int64 vector search functions
pkg/container/vector/utils_test.go
[]int64
instead of[]int32
.1 files
txn_table_sharding.go
Minor formatting and comment addition
pkg/vm/engine/disttae/txn_table_sharding.go