Skip to content

BUG:Incorrect array length for StructArray field "captions", expected 8192 got 5364 #6936

Description

@sdbds

I'm sure version 3.0.1 is fine; this bug only appears after updating to version 6.0 or higher.

Traceback (most recent call last):
  File "D:\musubi-tuner-scripts\qinglong-captions\utils\wdtagger.py", line 1249, in <module>
    main(args)
  File "D:\musubi-tuner-scripts\qinglong-captions\utils\wdtagger.py", line 935, in main
    flush_merge_insert()
  File "D:\musubi-tuner-scripts\qinglong-captions\utils\wdtagger.py", line 870, in flush_merge_insert
    dataset.merge_insert(on="uris").when_matched_update_all().execute(table)
  File "D:\musubi-tuner-scripts\qinglong-captions\.venv\Lib\site-packages\lance\dataset.py", line 269, in execute
    return super(MergeInsertBuilder, self).execute(reader)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: LanceError(IO): External error: Encountered internal error. Please file a bug report at https://github.com/lance-format/lance/issues. Error decoding batch: Invalid user input: Invalid argument error: Incorrect array length for StructArray field "captions", expected 8192 got 5364, C:\a\lance\lance\rust\lance-encoding\src\encodings\logical\struct.rs:394:26, C:\a\lance\lance\rust\lance-encoding\src\decoder.rs:2704:26, C:\a\lance\lance\rust\lance\src\dataset\write\merge_insert.rs:945:46

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions