cambyzju commented on code in PR #54659:
URL: https://github.com/apache/doris/pull/54659#discussion_r2272302383


##########
be/src/exec/es/es_scroll_parser.cpp:
##########
@@ -201,19 +201,31 @@ Status get_date_value_int(const rapidjson::Value& col, 
PrimitiveType type, bool
             std::chrono::system_clock::time_point tp;
             // time_zone suffix pattern
             // Z/+08:00/-04:30
-            RE2 time_zone_pattern(R"([+-]\d{2}:\d{2}|Z)");
+            RE2 time_zone_pattern(R"([+-]\d{2}:?\d{2}|Z)");
             bool ok = false;
             std::string fmt;
             re2::StringPiece value;
             if (time_zone_pattern.Match(str_date, 0, str_date.size(), 
RE2::UNANCHORED, &value, 1)) {
                 // with time_zone info
                 // YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+08:00
                 // or 2022-08-08T12:10:10.000Z or YYYY-MM-DDTHH:MM:SS-08:00
+                // Also support format without colon like +0900

Review Comment:
   support this timezone format in TimezoneUtils



-- 
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-unsubscr...@doris.apache.org

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


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

Reply via email to