Skip to content

[adapters] Ad hoc queries return errors with HTTP status 200 #4973

@ryzhyk

Description

@ryzhyk

Create a program with a non-materialized table:

create table t (x int);

and try to query it:

curl -I -X GET http://localhost:8080/v0/pipelines/adhoc/query?sql=select*from%20t

Instead of returning an HTTP error code, it returns 200 with the error message in the body:

ERROR: Error during query processing: Execution error: Tried to SELECT from a non-materialized source. Make sure `t` is configured as materialized: use `with ('materialized' = 'true')` for tables, or `create materialized view` for views.

Metadata

Metadata

Assignees

Labels

connectorsIssues related to the adapters/connectors crate

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions