Skip to content

Pass ALLOW_ADHOC_SUBQUERY to analytics without literal quotes - #41

Merged
ravikiranvm merged 1 commit into
mainfrom
OPS-4975
Oct 26, 2026
Merged

ravikiranvm merged 1 commit into
mainfrom
OPS-4975

Conversation

@ravikiranvm

@ravikiranvm ravikiranvm commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Fixes OPS-4975.

Problem

On every Helm (AKS) deployment, the benchmark dashboards' "Top opportunities to address" chart fails with Custom SQL fields cannot contain sub-queries. The same chart works on Docker Compose with the same analytics image.

Cause

chart/values.yaml wrapped the value in an extra pair of double quotes inside single quotes:

SUPERSET_FEATURE_ALLOW_ADHOC_SUBQUERY: '"{{ .Values.openopsEnv.ANALYTICS_ALLOW_ADHOC_SUBQUERY }}"'

openops.renderEnv adds its own | quote, so the container got "true" with the quotes included. Superset turns SUPERSET_FEATURE_* variables into flags with parse_boolean_string, which does not accept a quoted value, so the flag has been off on every Helm deployment.

The table chart runs in raw-records mode. In that mode Superset checks each column name for sub-queries. Estimated savings USD per month does not parse as SQL, and a parse failure counts as a sub-query, so with the flag off the chart errors.

The value was wrapped in an extra pair of double quotes, so the analytics
container received "true" with the quotes. Superset's parse_boolean_string
does not accept that, which left ALLOW_ADHOC_SUBQUERY off on every Helm
deployment and broke the benchmark dashboards' raw-records table chart.

Fixes OPS-4975.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 26, 2026 11:17
@linear

linear Bot commented Oct 26, 2026

Copy link
Copy Markdown

OPS-4975

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Enabling SQL subqueries in production requires the requested human security review, and AKS runtime validation remains pending.

No open issues 🎉

What changed in this PR

This PR fixes analytics feature-flag quoting in the Helm chart so ALLOW_ADHOC_SUBQUERY receives a valid boolean string, addressing the reported dashboard failure.

Changes:

  • Removes literal double quotes from SUPERSET_FEATURE_ALLOW_ADHOC_SUBQUERY.
  • Allows the existing default of true to enable analytics SQL subqueries in Helm deployments, matching Docker Compose.
File Description
chart/​values.yaml Removes extra quotes from the analytics subquery feature flag.

Review effort: Balanced

@ravikiranvm
ravikiranvm merged commit 9964ee9 into main Oct 26, 2026
5 checks passed
@ravikiranvm
ravikiranvm deleted the OPS-4975 branch October 26, 2026 12:56

This branch was successfully deployed

1 active deployment
release — 486ebca6 Deployed Oct 26, 2026 by ravikiranvm via Package and publish Helm chart #61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants