Skip to content

Conversation

wangrunji0408
Copy link
Contributor

@wangrunji0408 wangrunji0408 commented Aug 8, 2025

When registering a scalar function which returns a list value, duckdb returns an error:

thread '<unnamed>' panicked at src/lib.rs:31:10:
Failed to register split_words function: DuckDBFailure(Error { code: Unknown, extended_code: 1 }, None)

This PR fixes this issue by replacing LogicalTypeId::try_from(..).into() by to_duckdb_logical_type.

Copy link
Member

@mlafeldt mlafeldt left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

I only had to fix a minor clippy issue.

@mlafeldt mlafeldt merged commit f5a687c into duckdb:main Aug 21, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants