influxdb/influxdb_iox
Marco Neumann c7197a289e
fix: gRPC error code for invalid InfluQL (#7519)
This was "internal". The mapping works like this: we take the
`DataFusionError` and call `find_root` which should traverse the
`External(...)` chain (even through Arrow) to find the last error that
is not within the Arrow/DataFusion land. This is then mapped by us.

`DataFusionError::External(...)` is no further inspected and mapped
straight to "internal". I think this if fine because in the end we're
mostly dealing w/ DataFusion stuff anyways.

I've slightly changed the error mapping in the planner to emit
`DataFusionError::Plan(...)` instead which we map to "invalid argument".
I think this is way better for the user.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-12 16:00:38 +00:00
..
src Merge branch 'main' into dom/remove-explicit-replica 2023-04-12 16:29:18 +01:00
tests fix: gRPC error code for invalid InfluQL (#7519) 2023-04-12 16:00:38 +00:00
Cargo.toml chore: remove ingest_replica 2023-04-12 16:06:31 +02:00
build.rs feat: Add support for data-driven InfluxQL tests (#6830) 2023-02-03 12:56:37 +00:00