forked from lancedb/lance
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix v2 error that can happen when writing list<struct<...>> with…
… many empty lists (lancedb#2762) If the list offsets are bigger than the struct items (easy if there are many lists) and there are multiple pages of offsets then the list encoding needs to force a page from the items page. This causes `flush` to be called multiple times which the struct encoder wasn't expecting. This would lead the struct header column to have multiple pages which, while not technically a problem, causes an assertion to fail on read. We could relax the assertion but it is simpler to just not write that kind of file in the first place.
- Loading branch information
1 parent
cf0e6cb
commit 99f554f
Showing
2 changed files
with
38 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters