ArroyoSystems / arroyo

Distributed stream processing engine in Rust

Home Page:https://arroyo.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQL casts unwrap instead of hooking into error handling system

mwylde opened this issue · comments

Our SQL cast expressions currently deal with errors by unwrapping:

parse_str(&StructField::data_type_name(output_type)).unwrap();

Causing an error on invalid cast is inline with the behavior of postgres, however we should find a way to hook into the error-reporting system to let the user know why the job failed. We may also want to support something like try_cast that attempts to cast and returns null if it fails.