You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/04/07 06:38:00 UTC

[GitHub] [incubator-doris] HappenLee commented on a diff in pull request #8872: [Bug] [Storage-Vectorized] query get wrong result when read datetime type column

HappenLee commented on code in PR #8872:
URL: https://github.com/apache/incubator-doris/pull/8872#discussion_r844747358


##########
be/src/vec/runtime/vdatetime_value.h:
##########
@@ -157,7 +157,30 @@ class VecDateTimeValue { // Now this type is a temp solution with little changes
               _month(0), // so this is a difference between Vectorization mode and Rowbatch mode with DateTimeValue;
               _year(0) {} // before int128  16 bytes  --->  after int64 8 bytes
 
-    explicit VecDateTimeValue(int64_t t) { from_date_int64(t); }
+    static VecDateTimeValue create_from_olap_date(uint64_t value) {

Review Comment:
   add comment what's the different between `create_from_olap_datetime` and `create_from_normal_datetime`. it is default to know the different from the name of function name.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org