This is an automated email from the ASF dual-hosted git repository.

alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git


The following commit(s) were added to refs/heads/master by this push:
     new c9a7e5e4b [scripts] support uint64_t values for hybrid timestamps
c9a7e5e4b is described below

commit c9a7e5e4b0685c5e2ff849914785e2333af89917
Author: Alexey Serbin <ale...@apache.org>
AuthorDate: Mon Jan 23 21:42:20 2023 -0800

    [scripts] support uint64_t values for hybrid timestamps
    
    This patch updates the convert-hybrid-timestamp.py script to support
    hybrid timestamp values that are beyond 2^63.
    
    Before this patch:
      echo 12039974332919063140 |  python convert-hybrid-timestamp.py
      1979-04-25 19:18:05.862281 L=33380
    
    After this patch:
      $ echo 12039974332919063140 |  python convert-hybrid-timestamp.py
      2063-02-23 01:00:58.622818 L=612
    
    Change-Id: I89cf685f765cb2f77c50d4224aacbf416bb9af9a
    Reviewed-on: http://gerrit.cloudera.org:8080/19438
    Tested-by: Alexey Serbin <ale...@apache.org>
    Reviewed-by: Yifan Zhang <chinazhangyi...@163.com>
---
 src/kudu/scripts/convert-hybrid-timestamp.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kudu/scripts/convert-hybrid-timestamp.py 
b/src/kudu/scripts/convert-hybrid-timestamp.py
index 2ee09d391..c3cdc490e 100644
--- a/src/kudu/scripts/convert-hybrid-timestamp.py
+++ b/src/kudu/scripts/convert-hybrid-timestamp.py
@@ -37,4 +37,4 @@ def convert_ts(ts_match):
   return "%s.%06d L=%d" % (f, phys_micros, logical)
 
 for l in sys.stdin.readlines():
-  print(re.sub(r"\d{10,19}", convert_ts, l))
+  print(re.sub(r"\d{10,20}", convert_ts, l))

Reply via email to