[
https://issues.apache.org/jira/browse/IOTDB-6157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Haonan Hou reassigned IOTDB-6157:
---------------------------------
Assignee: Haonan Hou
> Check timestamp precision when insert
> -------------------------------------
>
> Key: IOTDB-6157
> URL: https://issues.apache.org/jira/browse/IOTDB-6157
> Project: Apache IoTDB
> Issue Type: Improvement
> Reporter: Haonan Hou
> Assignee: Haonan Hou
> Priority: Major
> Labels: pull-request-available
>
> Some users may insert higher precision timestamps into an IoTDB with low
> timestamp precision. It may cause some stability problem, due to the time
> partition interval calculating with lower timestamp precision, a lot of
> unexpected time partition was created. Therefore, we hope to do the following
> checks when insert or load data.
> When timestamp_precision=ms, check whether the inserting timestamp over 13
> digits. If true, return error.
> When timestamp_precision=us, check whether the inserting timestamp over 16
> digits. If true, return error.
> When timestamp_precision=ns, because Long.maxValue is already 19 digits, no
> need to check.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)