chaos-genius / chaos_genius

ML powered analytics engine for outlier detection and root cause analysis.
https://www.chaosgenius.io
MIT License
728 stars 2 forks source link

[BUG] legacySQL cannot be used for setting up BigQuery KPIs #825

Open athul-osmo opened 2 years ago

athul-osmo commented 2 years ago

Describe the bug

When creating KPIs, Chaos Genius does not let us use legacySQL for the query despite adding #legacySQL at the top of the query.

Explain the environment

Current behavior

An error message saying "Test Connection Failed" appears with an API 400 POST response describing that the query text entered specifies to use legacySQL, while the API options specify not to use legacySQL. If "#legacySQL" is included at the top of any query, this message pops up.

Expected behavior

I wanted to use legacySQL for a query to set up a KPI, but, I am currently being forced to use standardSQL. I need the functionality of legacySQL to easily set up some KPIs.

Screenshots

Screen Shot 2022-03-09 at 9 58 11 AM

Additional context

N/A

Logs

N/A

github-actions[bot] commented 2 years ago

Hello there, thanks for opening your first issue. We welcome you to the community!