Repository navigation
Revert "Validate UTF-8 of DeltaLake delta-kernel-rs FFI option values" - #105963
Conversation
|
Workflow [PR], commit [3ab7b26] AI ReviewSummaryThis PR fully reverts the UTF-8 validation that had been added before calling Findings❌ Blockers
Tests
Final VerdictStatus:
|
| auto set_option = [&](const std::string & name, const std::string & value) | ||
| { | ||
| setBuilderOptionChecked(builder, name, value); | ||
| ffi::set_builder_option(builder, KernelUtils::toDeltaString(name), KernelUtils::toDeltaString(value)); |
There was a problem hiding this comment.
Removing the setBuilderOptionChecked guard here reintroduces a server-abort path on invalid option bytes.
ffi::set_builder_option receives raw KernelStringSlice and the Rust side decodes it as UTF-8. For non-UTF8 credentials (for example a binary SAS token like MD5('')), this crosses the extern "C" boundary via panic and terminates the process instead of returning BAD_ARGUMENTS.
Can we keep validation at this boundary (or make the FFI return an error) so malformed user input cannot kill the process?
Reverts #105897 due to flakiness and memory leaks.
Closes #105961
Changelog category (leave one):
Version info
26.6.1.199