codenotary / immudb

immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history
https://immudb.io
Other
8.55k stars 343 forks source link

SQL better exception #1186

Closed Razikus closed 1 year ago

Razikus commented 2 years ago

What would you like to be added or enhanced

When SQL column doesn't exists the error description is not enough to know where the error for real is

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "column does not exist"
debug_error_string = "{"created":"@1650366761.725664627","description":"Error received from peer ipv6:[::1]:3322","file":"src/core/lib/surface/call.cc","file_line":903,"grpc_message":"column does not exist","grpc_status":2}"

It should include at least missing column name

Why is this needed

Faster exception handling

jeroiraz commented 2 years ago

thanks for reporting this @Razikus

An ongoing PR may cover most of the cases already (https://github.com/codenotary/immudb/pull/1096), it may be merged into master soon