[feature](decimal)support cast rounding half up and div precision increment in decimalv3. (#19811)

This commit is contained in:
Mryange
2023-06-01 13:09:58 +08:00
committed by GitHub
parent 04644c6dfa
commit 519f01133a
119 changed files with 17599 additions and 17633 deletions

View File

@ -1954,6 +1954,14 @@ public class Config extends ConfigBase {
@ConfField(mutable = true)
public static int max_instance_num = 128;
/*
* This variable indicates the number of digits by which to increase the scale
* of the result of division operations performed with the `/` operator. The
* default value is 4, and it is currently only used for the DECIMALV3 type.
*/
@ConfField(mutable = true)
public static int div_precision_increment = 4;
/**
* This config used for export/outfile.
* Whether delete all files in the directory specified by export/outfile.