refactor: update RangeConfig to use pointers for min and max; adjust partition calculation logic to handle nil values
This commit is contained in:
@@ -68,10 +68,10 @@ type TargetTableInfo struct {
|
||||
}
|
||||
|
||||
type RangeConfig struct {
|
||||
Min int64 `yaml:"min"`
|
||||
Max int64 `yaml:"max"`
|
||||
IsMinInclusive bool `yaml:"is_min_inclusive"`
|
||||
IsMaxInclusive bool `yaml:"is_max_inclusive"`
|
||||
Min *int64 `yaml:"min"`
|
||||
Max *int64 `yaml:"max"`
|
||||
IsMinInclusive bool `yaml:"is_min_inclusive"`
|
||||
IsMaxInclusive bool `yaml:"is_max_inclusive"`
|
||||
}
|
||||
|
||||
type Job struct {
|
||||
|
||||
Reference in New Issue
Block a user