Hi Yuan Tian,

I’ve pushed the changes from your review. I added a test that exports a
table to CSV and imports it again to check that microsecond timestamps keep
their precision. I also opened #19537
<https://github.com/apache/iotdb/issues/19537> for the tree-model case.

Could you take another look at PR #19533
<https://github.com/apache/iotdb/pull/19533> when you have a chance?

Thanks!

Bryan Yang <[email protected]> 于2026年12月4日周五 16:09写道:

> Please hold off on the review for a moment; I still have some issues to
> address.
>
> Bryan Yang <[email protected]> 于2026年12月4日周五 16:01写道:
>
>> Hi,
>>
>> I’ve pushed the fixes from the last review of the CSV import PR
>> <https://github.com/apache/iotdb/pull/19533> and tested them locally.
>> Could someone take another look when you get a chance?
>>
>> Thanks,
>> DaZuiZui
>>
>> Yuan Tian <[email protected]> 于2026年12月4日周五 13:53写道:
>>
>>> I'm reviewing on it.
>>>
>>> On Fri, Dec 4, 2026 at 12:45 PM Bryan Yang <[email protected]> wrote:
>>>
>>> > good afternoon all,
>>> >
>>> > Could someone review PR #19533? I found that exporting a table to CSV
>>> with
>>> > the default settings and importing it into an empty table with the same
>>> > schema can lose data. In my test, the primary time column was
>>> preserved,
>>> > but a separate TIMESTAMP field became NULL. The importer printed a
>>> > conversion error and exited with status 0, so a migration script could
>>> > treat the import as successful.
>>> >
>>> > The exporter writes both timestamps as formatted dates. The importer
>>> > already accepts that format for time, but expects an integer for other
>>> > TIMESTAMP columns. My patch reuses the same parser for both. For
>>> genuinely
>>> > invalid input, it preserves the valid fields, records the failed row,
>>> and
>>> > returns a nonzero exit status.
>>> >
>>> > I verified the change with formatted timestamps, numeric timestamps,
>>> and
>>> > malformed input. I’d especially appreciate feedback on the exit-status
>>> > change for partially imported files.
>>> >
>>> > Issue: apache/iotdb#19532 <
>>> https://github.com/apache/iotdb/issues/19532>
>>> > Pull request: apache/iotdb#19533
>>> > <https://github.com/apache/iotdb/pull/19533>
>>> >
>>> > Thanks,
>>> > DaZuiZui
>>> >
>>>
>>

Reply via email to