You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Tree CSV import loses TIMESTAMP measurements from the default export and exits successfully #19537
The tree-model CSV importer loses a TIMESTAMP measurement when reading the default CSV produced by export-data. The command writes the other measurement and exits 0, which makes a scripted restore look successful.
I reproduced this with the CLI from 476524933a and an IoTDB Edge 2.0.12 instance using millisecond precision.
Create a tree device with root.treecsv.d.event_ts (TIMESTAMP) and root.treecsv.d.v (INT32). Insert one row with (time, event_ts, v) = (1, 1796355197083, 7).
Export select event_ts,v from root.treecsv.d using export-data -sql_dialect tree -ft csv -tz +00:00 and the default time format. The CSV contains:
In this test device, delete the row while keeping the two time series, then import the exported file with import-data -sql_dialect tree -ft csv -tz +00:00 -s <exported-file>.
Actual: The importer reports that it cannot convert event_ts to TIMESTAMP, writes the row to .failed_0, prints Import completely!, and exits 0. Querying the device returns (1, NULL, 7).
Expected: Importing this CSV restores (1, 1796355197083, 7) and exits 0. A genuinely malformed timestamp should preserve valid measurements, produce a failed-row file, and return a nonzero exit status.
Activity