This is an automated email from the ASF dual-hosted git repository.
mrhhsg pushed a commit to branch nested_column_prune
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/nested_column_prune by this
push:
new fe7873a379a fix decimalv2's precision and scale
fe7873a379a is described below
commit fe7873a379a382be3dc1d244a93e4d2c79cf22bc
Author: Hu Shenggang <[email protected]>
AuthorDate: Thu Nov 6 16:26:20 2025 +0800
fix decimalv2's precision and scale
---
be/src/vec/data_types/data_type_factory.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/be/src/vec/data_types/data_type_factory.cpp
b/be/src/vec/data_types/data_type_factory.cpp
index 2dcf634dce3..6f27e295576 100644
--- a/be/src/vec/data_types/data_type_factory.cpp
+++ b/be/src/vec/data_types/data_type_factory.cpp
@@ -459,8 +459,7 @@ DataTypePtr DataTypeFactory::create_data_type(const
PrimitiveType primitive_type
nested = std::make_shared<vectorized::DataTypeBitMap>();
break;
case TYPE_DECIMALV2:
- nested = std::make_shared<vectorized::DataTypeDecimalV2>(
- precision > 0 ? precision : 0, precision > 0 ? scale : 0,
precision, scale);
+ nested = std::make_shared<vectorized::DataTypeDecimalV2>(27, 9,
precision, scale);
break;
case TYPE_QUANTILE_STATE:
nested = std::make_shared<vectorized::DataTypeQuantileState>();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]