From 87793b7c0002b5c805f276c2abfdc534fe84bd80 Mon Sep 17 00:00:00 2001 From: yixiutt <102007456+yixiutt@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:39:53 +0800 Subject: [PATCH] [bugfix](datatimev2) fix value column loss precision and scale (#13233) Co-authored-by: yixiutt --- be/src/olap/field.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/be/src/olap/field.h b/be/src/olap/field.h index 5f49bb9b2c..ea5a33d91a 100644 --- a/be/src/olap/field.h +++ b/be/src/olap/field.h @@ -798,7 +798,9 @@ public: [[fallthrough]]; case OLAP_FIELD_TYPE_DECIMAL64: [[fallthrough]]; - case OLAP_FIELD_TYPE_DECIMAL128: { + case OLAP_FIELD_TYPE_DECIMAL128: + [[fallthrough]]; + case OLAP_FIELD_TYPE_DATETIMEV2: { Field* field = new Field(column); field->set_precision(column.precision()); field->set_scale(column.frac());