tispark
tispark copied to clipboard
fix bug error will be throw when date col is not the first col in hash partition table ref #2537 (#2554)
This is an automated cherry-pick of #2554
Signed-off-by: qidi1 [email protected]
What problem does this PR solve?
- Close https://github.com/pingcap/tispark/issues/2537
What is changed and how it works?
When we insert data into a table which is partitioned by Year. The old code will always use 0 as a col offset to get the date value. When the date type is not the first col, the exception will be thrown out. Now, we use date col offset in columnRef insert of 0 as the offset to get the date value.
[REVIEW NOTIFICATION]
This pull request has been approved by:
- shiyuhang0
- xuanyu66
To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer
in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer
in the comment to help you merge this pull request.
The full list of commands accepted by this bot can be found here.
Reviewer can indicate their review by submitting an approval review. Reviewer can cancel approval by submitting a request changes review.
/run-all-tests
/run-all-tests
/merge
This pull request has been accepted and is ready to merge.