Skip to content

fix: return errors for unsupported fixed-size-list child types#6253

Merged
wjones127 merged 1 commit intolance-format:mainfrom
myandpr:fix-unsupported-fsl-writer-errors
Mar 23, 2026
Merged

fix: return errors for unsupported fixed-size-list child types#6253
wjones127 merged 1 commit intolance-format:mainfrom
myandpr:fix-unsupported-fsl-writer-errors

Conversation

@myandpr
Copy link
Contributor

@myandpr myandpr commented Mar 22, 2026

Summary

  • reject unsupported FixedSizeList child combinations during schema/type conversion
  • return schema errors instead of letting these cases reach later panic paths
  • replace the old panic-based tests with a small matrix of unsupported FixedSizeList child cases

Implementation

This keeps the fix at the schema/type conversion boundary instead of deeper in the writer stack.

Unsupported FixedSizeList child types are now rejected while converting Arrow DataType into Lance LogicalType. Supported paths remain unchanged, including primitive nested FSL and the existing FixedSizeList<Struct> version gating.

Testing

  • cargo test -p lance-encoding unsupported_fsl_child_types -- --nocapture
  • cargo test -p lance-encoding test_fixed_size_list_struct_requires_v2_2 -- --nocapture

@github-actions github-actions bot added the bug Something isn't working label Mar 22, 2026
@myandpr myandpr force-pushed the fix-unsupported-fsl-writer-errors branch from 3f62d3b to 9039f83 Compare March 22, 2026 19:08
@myandpr
Copy link
Contributor Author

myandpr commented Mar 22, 2026

Hey @westonpace , this should address #5654 by returning errors for unsupported FixedSizeList child combinations instead of panicking.

Would appreciate your feedback when you have a chance. Thanks!

Copy link
Contributor

@wjones127 wjones127 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable to me!

@wjones127 wjones127 self-assigned this Mar 23, 2026
@codecov
Copy link

codecov bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@wjones127 wjones127 merged commit 1d4052c into lance-format:main Mar 23, 2026
39 of 40 checks passed
@myandpr
Copy link
Contributor Author

myandpr commented Mar 23, 2026

@wjones127 Thanks for the review — appreciate it!🙌

westonpace pushed a commit that referenced this pull request Mar 24, 2026
## Summary
- reject unsupported `FixedSizeList` child combinations during
schema/type conversion
- return schema errors instead of letting these cases reach later panic
paths
- replace the old panic-based tests with a small matrix of unsupported
`FixedSizeList` child cases

## Implementation
This keeps the fix at the schema/type conversion boundary instead of
deeper in the writer stack.

Unsupported `FixedSizeList` child types are now rejected while
converting Arrow `DataType` into Lance `LogicalType`. Supported paths
remain unchanged, including primitive nested FSL and the existing
`FixedSizeList<Struct>` version gating.

## Testing
- cargo test -p lance-encoding unsupported_fsl_child_types --
--nocapture
- cargo test -p lance-encoding test_fixed_size_list_struct_requires_v2_2
-- --nocapture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants