Hi,good afternoon~, Thanks for reporting #19463. I’ve pushed the fix to PR #19457 <https://github.com/apache/iotdb/pull/19457>. If the file ends before a block comment’s closing */, the importer now reports the line where the comment began. I added the regression test you requested: for a file that starts with an unclosed comment, the statement consumer receives zero SQL statements.
I also fixed the same splitting issue for unclosed single quotes, double quotes, and backticks. The importer reports the opening line and stops processing that file. Statements completed before the error remain applied. Valid quoted text such as COMMENT 'intake; exhaust' stays intact, as required by #19456. For multi-file imports, the CLI continues processing the remaining files and returns exit code 1 if a SQL file fails to parse or a statement fails to execute. Only fully successful files count as successful, and statements rejected during execution are recorded in .failed. All 100 CLI tests passed locally, and the full project compiled with both English and Chinese messages. Could you take another look at the latest commit <https://github.com/apache/iotdb/pull/19457/commits/8443eea69b8c15c0476ba2ecb350e64149c757f4> ? Thanks, DaZuiZui Bryan Yang <[email protected]> 于2026年12月1日周二 14:43写道: > *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 >>> > >>> >>
