Skip to content

Comments

refactor: extend scalar-udfs WIT interface#50

Merged
crepererum merged 1 commit intomainfrom
crepererum/scalar_udfs_wit_ext
Sep 2, 2025
Merged

refactor: extend scalar-udfs WIT interface#50
crepererum merged 1 commit intomainfrom
crepererum/scalar_udfs_wit_ext

Conversation

@crepererum
Copy link
Collaborator

  • make it fallible
  • pass some opaque string into the guest

Both are required to properly pass Python source code from the host into the guest.

Split from #49, where this interface will actually be used.

@crepererum crepererum requested a review from a team September 2, 2025 15:27
host/src/lib.rs Outdated
"call scalar_udfs() method",
Some(&store.data().stderr.contents()),
)?;
)??;
Copy link
Contributor

Choose a reason for hiding this comment

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

I always get a bit concerned when I see 2+ ? at the end of a statement, so if this error chain is something we can control and improve the return type of, I would say to do so, but otherwise I'm fine with it and understand there may not be anything we can do.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fair point. I've extended the error handling here a bit to differentiate between the two cases. I think long-term we probably wanna polish the error message a bit further during #26 .

- make it fallible
- pass some opaque string into the guest

Both are required to properly pass Python source code from the host into
the guest.
@crepererum crepererum force-pushed the crepererum/scalar_udfs_wit_ext branch from 8c28545 to 3b1d791 Compare September 2, 2025 15:51
@crepererum crepererum enabled auto-merge September 2, 2025 15:52
@crepererum crepererum added this pull request to the merge queue Sep 2, 2025
Merged via the queue into main with commit a169f17 Sep 2, 2025
1 check passed
@crepererum crepererum deleted the crepererum/scalar_udfs_wit_ext branch September 2, 2025 15:59
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.

3 participants