-
Notifications
You must be signed in to change notification settings - Fork 276
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
change LIMIT,OFFSET's data type from int64 to uint64 #16698
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 ##16624
What this PR does / why we need it:
limit和offset 的数据类型改为uint64。
PR Type
Bug fix, Tests
Description
limit
andoffset
data types fromint64
touint64
across various modules.uint64
.uint64
limit and offset.Changes walkthrough 📝
13 files
limit.go
Update `limit` data type to `uint64`.
pkg/sql/colexec/limit/limit.go
limit
data type fromint64
touint64
.limit.go
Update `mergelimit` limit data type to `uint64`.
pkg/sql/colexec/mergelimit/limit.go
limit
data type fromint64
touint64
.offset.go
Update `mergeoffset` offset data type to `uint64`.
pkg/sql/colexec/mergeoffset/offset.go
offset
data type fromint64
touint64
.top.go
Update `mergetop` limit data type to `uint64`.
pkg/sql/colexec/mergetop/top.go
limit
data type fromint64
touint64
.uint64
.types.go
Update `mergetop` limit type definition to `uint64`.
pkg/sql/colexec/mergetop/types.go
limit
data type fromint64
touint64
.offset.go
Update `offset` data type to `uint64`.
pkg/sql/colexec/offset/offset.go
offset
data type fromint64
touint64
.top.go
Update `top` limit data type to `uint64`.
pkg/sql/colexec/top/top.go
limit
data type fromint64
touint64
.uint64
.types.go
Update `top` limit type definition to `uint64`.
pkg/sql/colexec/top/types.go
limit
data type fromint64
touint64
.compile.go
Update compile logic for limit and offset to use `uint64`.
pkg/sql/compile/compile.go
limit
andoffset
data types fromint64
touint64
.topN
.apply_indices_vector.go
Update plan apply indices vector for uint64 limit.
pkg/sql/plan/apply_indices_vector.go
limit
data type fromint64
touint64
.limit_binder.go
Update limit binder for uint64 limit and offset.
pkg/sql/plan/limit_binder.go
limit
andoffset
data types fromint64
touint64
.query_builder.go
Update query builder for uint64 limit and offset.
pkg/sql/plan/query_builder.go
limit
andoffset
data types fromint64
touint64
.uint64
.stats.go
Update stats calculation for uint64 limit.
pkg/sql/plan/stats.go
limit
data type fromint64
touint64
.10 files
limit_test.go
Update limit test cases to use `uint64`.
pkg/sql/colexec/limit/limit_test.go
uint64
forLimitExpr
.require
import for assertions.limit_test.go
Update mergelimit test cases to use `uint64`.
pkg/sql/colexec/mergelimit/limit_test.go
uint64
forLimit
.require
import for assertions.offset_test.go
Update mergeoffset test cases to use `uint64`.
pkg/sql/colexec/mergeoffset/offset_test.go
uint64
forOffsetExpr
.require
import for assertions.top_test.go
Update mergetop test cases to use `uint64`.
pkg/sql/colexec/mergetop/top_test.go
uint64
forLimit
.require
import for assertions.offset_test.go
Update offset test cases to use `uint64`.
pkg/sql/colexec/offset/offset_test.go
uint64
forOffsetExpr
.require
import for assertions.top_test.go
Update top test cases to use `uint64`.
pkg/sql/colexec/top/top_test.go
uint64
forLimit
.require
import for assertions.compile_test.go
Update compile test cases for uint64 limit and offset.
pkg/sql/compile/compile_test.go
require
import for assertions.build_test.go
Add test cases for uint64 limit in plan build.
pkg/sql/plan/build_test.go
uint64
limit.assert
import for assertions.limit.result
Add test cases for uint64 limit and offset.
test/distributed/cases/dml/select/limit.result
uint64
limit and offset.limit.sql
Add SQL test cases for uint64 limit and offset.
test/distributed/cases/dml/select/limit.sql
uint64
limit and offset.2 files
make.go
Add function to create uint64 constant expressions.
pkg/sql/plan/make.go
MakePlan2Uint64ConstExprWithType
.compiler_context.go
Implement GetSnapshot to return nil.
pkg/vm/engine/memoryengine/compiler_context.go
GetSnapshot
to returnnil
.