*Good afternoon,* * Yuan Tian,* Thanks for reviewing IoTDB PR #19457 <https://github.com/apache/iotdb/pull/19457> and flagging the overflow in large schema imports. I updated the importer to reset the lexer’s character position after each statement while preserving the characters it has already read for the next one.
I added a regression test that starts near Integer.MAX_VALUE and verifies that both statements are imported intact, including a quoted semicolon in the second one. All 93 CLI tests passed locally. Could you take another look at the follow-up commit <https://github.com/apache/iotdb/pull/19457/commits/c2519ded199641dca8cc4feb727d48471aaafbf7> when you have a chance? *Thanks,DaZuiZui* Bryan Yang <[email protected]> 于2026年12月1日周二 14:34写道: > *Good afternoon,** Yuan Tian,* > > Thank you for reviewing PR #19431 > <https://github.com/apache/iotdb/pull/19431>. I reproduced both issues > and pushed fixes in commit f63ab9a > <https://github.com/apache/iotdb/pull/19431/commits/f63ab9a4bd37ad7a1ff810932b319ade132c7f0b>. > Could you take another look when you have a chance? > > I added regression tests for both cases you reported. In the "**" table, > filtering on name = 'rack*' now returns only rack*, and deleting it > leaves pump untouched. With the device cache warmed, deleting ('*', NULL) > now reports one deletion and preserves ('plain', 'north'). > > *All 17 related unit tests passed locally. The full IoTDBDeviceIT suite > also passed with both one and three DataNodes.* > > > *Thanks,DaZuiZui* > > Yuan Tian <[email protected]> 于2026年12月1日周二 11:32写道: > >> I'm reviewing on it. >> >> On Tue, Dec 1, 2026 at 10:23 AM Bryan Yang <[email protected]> wrote: >> >> > 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 >> > >> >
