hongzhi-gao commented on code in PR #19248:
URL: https://github.com/apache/iotdb/pull/19248#discussion_r4559167204


##########
iotdb-client/client-py/iotdb/utils/rpc_utils.py:
##########
@@ -81,10 +82,16 @@ def convert_to_timestamp(time: int, precision: str, 
timezone: str):
     try:
         ts = pd.Timestamp(time, unit=precision, tz=timezone)
     except OutOfBoundsDatetime:
+        # A datetime64 scalar keeps the input unit; pandas 3.1 otherwise 
rescales
+        # numeric input to microseconds, which can overflow millisecond values.
         try:
-            ts = pd.Timestamp(time, unit=precision).tz_localize(timezone)
-        except NotImplementedError:
-            return pd.Timestamp(time, unit=precision)
+            ts = (

Review Comment:
   fixed



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to