forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make SplitQuery support VARBINARY column.
1. SplitQuery will split a VARBINARY column as a hex string. That is, it assumes the key range is [0x0000000, 0xFFFFFFFF] and then divides the range into intervals based on split count. 2. Introduce splitBoundariesStringColumn to handle string column case. 3. Refactor existing SplitQuery in sqlquery.go: create two helper functions getColumnType and getColumnMinMax.
- Loading branch information
1 parent
4ad5043
commit 09bff85
Showing
5 changed files
with
367 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.