Files
datastore/rust
Groene AIandClaude Opus 4.8 9c74a67e21 Fix server abort on PRQL parser panic at Rust FFI boundary
prqlc::compile can panic on some inputs (e.g. a todo!() in
type_intersection reached via append with type-incompatible columns).
The prql_to_sql bridge wraps the call in std::panic::catch_unwind, but
the wrapped prql_to_sql_impl was itself declared extern "C", so the
panic hit that nounwind frame and aborted the process (SIGABRT,
panic_in_cleanup) before catch_unwind could run.

Make prql_to_sql_impl a plain Rust fn so the panic unwinds normally
into catch_unwind and is turned into an error code, raised as a
SYNTAX_ERROR by ParserPRQLQuery instead of crashing the server.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-07-13 20:03:35 +00:00
..
…
…
2026-03-24 17:16:46 +01:00