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_query_datatype, tidb_query_expr: Add div_precision_increment support in dag request #16622
Conversation
Signed-off-by: yibin <huyibin@pingcap.com>
[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. |
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
Signed-off-by: yibin <huyibin@pingcap.com>
/hold |
@@ -72,6 +74,7 @@ pub struct EvalConfig { | |||
pub sql_mode: SqlMode, | |||
|
|||
pub paging_size: Option<u64>, | |||
pub div_precision_increment: i32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the type should be u8
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, updated
@@ -108,6 +114,7 @@ impl EvalConfig { | |||
max_warning_cnt: DEFAULT_MAX_WARNING_CNT, | |||
sql_mode: SqlMode::empty(), | |||
paging_size: None, | |||
div_precision_increment: DEFAULT_DIV_PRECISION_INCR, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding a new default value, how about using the existing value DEFAULT_DIV_FRAC_INCR
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, changed it.
Signed-off-by: yibin <huyibin@pingcap.com>
@@ -1,5 +1,4 @@ | |||
// Copyright 2016 TiKV Project Authors. Licensed under Apache-2.0. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should leave a blank line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
Signed-off-by: yibin <huyibin@pingcap.com>
/merge |
@gengliqi: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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. |
This pull request has been accepted and is ready to merge. Commit hash: 22fc396
|
/unhold |
…port in dag request (tikv#16622) close tikv#16627, ref pingcap/tidb#51501 Add support for div_precision_increment in dag request. Signed-off-by: yibin <huyibin@pingcap.com> Signed-off-by: dbsid <chenhuansheng@pingcap.com>
What is changed and how it works?
Issue Number: close #16627, ref pingcap/tidb#51501
What's Changed:
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Side effects
Release note