This is an automated email from the ASF dual-hosted git repository. lihaopeng pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 380c3f42ab [Refactor](datev2) Update comments for datev2/datetimev2 (#12823) 380c3f42ab is described below commit 380c3f42abe67c5d63b1bf12f3e816971bf10294 Author: Gabriel <gabrielleeb...@gmail.com> AuthorDate: Sun Sep 25 18:43:32 2022 +0800 [Refactor](datev2) Update comments for datev2/datetimev2 (#12823) --- be/src/vec/data_types/data_type_time_v2.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/be/src/vec/data_types/data_type_time_v2.h b/be/src/vec/data_types/data_type_time_v2.h index d2a6cefae6..f65768a45c 100644 --- a/be/src/vec/data_types/data_type_time_v2.h +++ b/be/src/vec/data_types/data_type_time_v2.h @@ -23,7 +23,7 @@ namespace doris::vectorized { /** * Use UInt32 as underlying type to represent DateV2 type. - * Specifically, a dateV2 type is represented as (YYYY (16 bits), MM (8 bits), DD (8 bits)). + * Specifically, a dateV2 type is represented as (YYYY (23 bits), MM (4 bits), dd (5 bits)). */ class DataTypeDateV2 final : public DataTypeNumberBase<UInt32> { public: @@ -47,6 +47,12 @@ public: static void cast_from_date_time(const Int64 from, UInt32& to); }; +/** + * Use UInt64 as underlying type to represent DateTimeV2 type. + * +---------------date part---------------+-----------------------time part------------------------+ + * | 27 bits | 37 bits | + * Specifically, a dateTimeV2 type is represented as (YYYY (18 bits), MM (4 bits), dd (5 bits), HH (5 bits), mm (6 bits), SS (6 bits), ssssss (20 bits)). + */ class DataTypeDateTimeV2 final : public DataTypeNumberBase<UInt64> { public: static constexpr bool is_parametric = true; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org