taosdata / TDengine

High-performance, scalable time-series database designed for Industrial IoT (IIoT) scenarios
https://tdengine.com
GNU Affero General Public License v3.0
23.26k stars 4.84k forks source link

Insert record with multiple timestamp cols may cause insert error invalid timestamp #26493

Open johnnylc opened 2 months ago

johnnylc commented 2 months ago

Bug Description When stable created with multiple timestamp cols, for example ts device_ts data_ts local_ts ..., When perform a insert action using Springboot jdbc, and set the data_ts and local_ts using the same timestamp string like "2024-07-09 23:00:00:000". Occasionally, the insert may fail and the error log of Springboot says " invalid timestamp near xxxxxx".

It happens many times, and when it happens I try to not set local_ts, just set the data_ts using the same timestamp string, then the record could be inserted successfully.

Environment (please complete the following information):

yu285 commented 1 month ago

Could you provide us core code ?

yu285 commented 1 month ago

and JDBC version please .