-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: TIDB_DECODE_KEY(): Decode keys which only have a TableID #29522
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/cc @kolbe |
/cc @tangenta |
Co-authored-by: kennytm <[email protected]>
/run-check_dev |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: e264bb0
|
@dveeden: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/run-check_dev_2
|
What problem does this PR solve?
The
TIDB_DECODE_KEY()
function was only able to decode keys that were "record" or "index" keys. However theSTART_KEY
andEND_KEY
columns ofinformation_schema.TIKV_REGION_STATUS
always have entries that only have a "table_id" and no row/index info. This is for the minimum start key and the maximum end key.This change:
7480000000000000FF4700000000000000F8
TIDB_DECODE_ROW()
on the minimumSTART_KEY
and maximumEND_KEY
.TIDB_DECODE_ROW()
for the minimumSTART_KEY
and maximumEND_KEY
. This allows one to use JSON functions directly without having to useIF(JSON_VALID(),...
This is related to pingcap/docs#6728
Check List
Tests
Side effects
Documentation
Release note