Hi all,

PR url: https://github.com/apache/iotdb/issues/19456

Could someone review PR #19457 <https://github.com/apache/iotdb/pull/19457>?
It fixes a table schema import bug reported in issue #19456
<https://github.com/apache/iotdb/issues/19456>.

I reproduced the issue with a column defined as COMMENT 'intake; exhaust'.
When importing the exported schema over an existing table, the DROP TABLE
succeeds, but import-schema.sh splits the subsequent CREATE TABLE at the
semicolon inside the comment. The target table is left missing, even though
the tool prints Import completely! and exits with code 0.

The fix uses the existing table-model SQL lexer to identify statement
boundaries. I verified the same export on a local IoTDB cluster: with the
fix, the target table was recreated and its SHOW CREATE TABLE output
matched the source exactly. All 22 CLI tests passed, including four new
regression tests.

I’d appreciate a review of the statement splitting and any SQL cases the
tests might have missed.

Thanks,
DaZuiZui

Reply via email to