mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
A projection part that fails to load before its columns are set (for example because of a corrupted serialization.json) has an empty column list. CHECK TABLE compared the projection's on-disk columns.txt against that empty list and reported a misleading "Columns doesn't match ... Expected: 0 columns" error, hiding the real corruption. Take the expected columns from the projection metadata when the part's own columns are unavailable, so the check proceeds and reports the actual broken file. Extracted from #93694. Co-Authored-By: Claude Fable 5 <[email protected]>