andrusha / snowflake-rs

Snowflake API libraries for Rust
Apache License 2.0
31 stars 26 forks source link

Output errors don't get parsed into an error properly. #31

Open benfdking opened 9 months ago

benfdking commented 9 months ago

Some returned errors don't seem to get parsed properly, making it rather hard to debug.

For example, for a query that returns the following in the console

001042 (XX000): SQL compilation error:
Compilation memory exhausted.
after 3m 40s

The library error concerns the output not fitting into an enum. It looks like the returned error from Snowflake does not fit inside the predetermined structures.

colin99d commented 8 months ago

I second this! Is there anyway for now we could have like an UnknownError(Value) on the Enum so that we easily see what the issue is. Then over time we could add all the errors we find as types.