Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_count endpoint doesn't work for non-default database #985

Open
avelanarius opened this issue Nov 13, 2024 · 0 comments
Open

_count endpoint doesn't work for non-default database #985

avelanarius opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@avelanarius
Copy link
Member

ClickHouse/Hydrolix backend connector supports a database config option, which is prepended to table names (e.g. if table name is logs and database is my_company, then SQL queries will access my_company.logs). The _search endpoint properly respects that option, however the _count endpoint doesn't take that into account:

quesma/quesma/quesma.go:156 > quesma request failed: clickhouse: query row failed: code: 60, message: Table _local.siem does not exist opaque_id= path=/siem/_count reason="Failed request." request_id=01932603-9a36-71e7-9019-2ca1117745f2
@avelanarius avelanarius added bug Something isn't working good first issue Good for newcomers labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant