vmware / sql-to-dbsp-compiler

Compiler translating SQL view definitions into DBSP circuits (https://github.com/vmware/database-stream-processor)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cast implementation is not safe

mihaibudiu opened this issue · comments

In particular, some casts may fail (e.g., long to int), and these need probably return null in such cases.
It looks like for every SQL type pair we need to handle 4 cases explicitly:

- T to S
- Option<T> to S
- Option<T> to Option<S>
- T to Option<S>