luoluoyuyu opened a new pull request, #19100:
URL: https://github.com/apache/iotdb/pull/19100

   ## Summary
   
   Table-model TsFiles are identified by a non-empty TableSchema map. A table 
could have chunks in a file while its schema map entry was missing or removed, 
causing the file to be treated as a tree-model file and loaded with zero rows.
   
   This change only fixes map membership and preserves the existing TableSchema 
content:
   
   - Register a missing TableSchema entry for every table that already has 
chunks during normal flush and unsealed-file recovery.
   - Keep an existing schema entry untouched; do not synthesize a TIME column 
when it was not present before.
   - Retain the schema entry for tables that wrote chunk groups during 
compaction, even when the schema has no FIELD/TIME column.
   - Preserve a TIME column during compaction only when it already exists in 
the source TableSchema.
   
    is intentionally untouched.
   
   ## Tests
   
   - New unit tests for missing-schema registration, including a time-only 
table entry.
   - Compaction schema/writer unit tests.
   - Two-cluster integration test: producer writes and compacts a table-model 
TsFile, then a separate cluster loads it and verifies the row count.
   - Full English and Chinese test compilation passed.
   - `spotless:check` and `git diff --check` passed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to