Skip to content

Conversation

Jefffrey
Copy link
Contributor

Which issue does this PR close?

Part of #8249

Rationale for this change

Was checking through array functions and found array_slice doesn't handle FixedSizeList arrays. Fix so it does.

What changes are included in this PR?

Fix signature so it allows automatic coercion from fixed size list to list

Are these changes tested?

Added SLT tests.

Are there any user-facing changes?

No

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Sep 19, 2025
),
volatility: Volatility::Immutable,
},
signature: Signature::array(Volatility::Immutable),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not related to array_slice, just refactoring to make use of equivalent Signature::array function

Comment on lines -779 to +771
signature: Signature {
type_signature: TypeSignature::ArraySignature(
ArrayFunctionSignature::Array {
arguments: vec![ArrayFunctionArgument::Array],
array_coercion: Some(ListCoercion::FixedSizedListToList),
},
),
volatility: Volatility::Immutable,
},
signature: Signature::array(Volatility::Immutable),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ditto

@Jefffrey Jefffrey mentioned this pull request Sep 19, 2025
19 tasks
@Jefffrey Jefffrey marked this pull request as ready for review September 19, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant