[
https://issues.apache.org/jira/browse/IOTDB-4810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lei Rui reassigned IOTDB-4810:
------------------------------
Assignee: Lei Rui
> print-tsfile-sketch.bat went wrong when reading measurementID with Chinese
> characters
> -------------------------------------------------------------------------------------
>
> Key: IOTDB-4810
> URL: https://issues.apache.org/jira/browse/IOTDB-4810
> Project: Apache IoTDB
> Issue Type: Bug
> Components: Core/Server
> Reporter: Lei Rui
> Assignee: Lei Rui
> Priority: Minor
> Fix For: master branch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> `print-tsfile-sketch.bat` went wrong when reading measurementID with Chinese
> characters.
> Specifically, it is the following code that does not return correct results:
> {code:java}
> int measurementIdLength =
> measurementID.getBytes(TSFileConfig.STRING_CHARSET).length; {code}
> For example, if measurementID="电机绕组温度1",
> the correct measurementIdLength is 20,
> while `print-tsfile-sketch.bat` assigns measurementIdLength as 30, which is
> wrong.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)