Skip to content

[2.0] Fixes 36880: Make the Athena connection workgroup optional (#36881) - #37038

Merged
ulixius9 merged 1 commit into
2.0from
ulixius9/backport-36881-2.0
Nov 5, 2026
Merged

ulixius9 merged 1 commit into
2.0from
ulixius9/backport-36881-2.0

Conversation

@ulixius9

@ulixius9 ulixius9 commented Nov 4, 2026

Copy link
Copy Markdown
Member

Backport of #36881 to 2.0 (cherry-picked with -x from 265b62f).

Fixes #36880: makes the Athena connection workgroup optional. When it's unset, queries run in the default workgroup and query history is read from every enabled workgroup.

Differences from the main PR

  • Left out the dereferenced schema JSONs under public/jsons/connectionSchemas/ and src/jsons/ingestionSchemas/, because 2.0 doesn't track them.
  • No Python source changes were needed. On 2.0, connection.py and query_parser.py already treat a falsy workgroup as unset.

Testing

  • Regenerated the Pydantic models on 2.0. workgroup is now str | None = None.
  • pytest tests/unit/source/database/athena: 54 passed.
  • ruff check / ruff format --check pass on the changed tests.

🤖 Generated with Claude Code

* fix(athena): make the connection workgroup optional

The workgroup field was required, so the UI could never save it empty and
usage/lineage could not reach the "read every enabled workgroup" path that
2.0.6 kept for an empty workgroup. Left empty, the connection now runs its
queries in the default workgroup and query history is read from every
enabled workgroup.

* test(athena): keep covering the empty-string workgroup that API/YAML configs hold

* Update generated TypeScript types and dereferenced schemas

* chore(playwright): auto-refresh impact-map.generated.json

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 265b62f)
@ulixius9
ulixius9 requested review from a team as code owners November 4, 2026 10:33
@ulixius9
ulixius9 requested review from anuj-kumary and mohittilala and removed request for a team November 4, 2026 10:33
@ulixius9 ulixius9 added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Nov 4, 2026
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Making Athena workgroup optional runs queries in primary and reads all enabled workgroup histories, which could broaden imported usage and lineage data.

Makes the Athena connection workgroup optional on the 2.0 branch: when unset, queries run in the default workgroup and query history is read from every enabled workgroup. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 68%
68.66% (83678/121861) 53.7% (52055/96935) 54.36% (15446/28413)

@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2026

Copy link
Copy Markdown

@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2026

Copy link
Copy Markdown

@Khairajani Khairajani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Needs the skip-pr-checks label for the metadata check on 2.0.

@ulixius9
ulixius9 merged commit 4b26d51 into 2.0 Nov 5, 2026
88 of 106 checks passed
@ulixius9
ulixius9 deleted the ulixius9/backport-36881-2.0 branch November 5, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants