Repository navigation
ddl: support specifying expr rand() as column default value - #32608
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. DetailsReviewer can indicate their review by submitting an approval review. |
|
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/299bf2e2d88be752340ea135252886c656e29383 |
|
/run-mysql-test |
bfb05d2 to
1720c3e
Compare
rand()
|
/cc tangenta xiongjiwei |
|
please fix the test |
xiongjiwei
left a comment
There was a problem hiding this comment.
please also add some tests in parser
rand()rand() as column default value
5bc2406 to
f9d0aae
Compare
|
Rest LGTM |
Co-authored-by: tangenta <tangenta@126.com>
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: a289bdb |
|
@CbcWestwolf: 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. DetailsInstructions 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. |
What problem does this PR solve?
Issue Number: close #10377
Problem Summary:
Now TiDB only supports
nextVal(),now()/current_timestamp()and literal value as a column's default value.What is changed and how it works?
Implement
rand()as a default value.Check List
Tests
Side effects
Documentation
Release note