Skip to content

[2.1] Fixes #37978: MicroStrategy reads a report dataset's lineage from its source cube - #38206

Merged
Khairajani merged 1 commit into
2.1from
mstr-cube-report-source-2.1
Nov 19, 2026
Merged

Khairajani merged 1 commit into
2.1from
mstr-cube-report-source-2.1

Conversation

@Khairajani

@Khairajani Khairajani commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #37978

Backport of #37979 to 2.1. A MicroStrategy report built on an Intelligent Cube now gets that cube's lineage. Warehouse reports, prompted reports and Live cubes now log why they have no lineage. The connector code is identical to main.

Type of change:

  • Bug fix

Tests:

Checklist:

  • My PR title is [2.1] Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have added tests and listed them above.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.

Summary

MicroStrategy report datasets now inherit lineage from their source Intelligent Cube.

  • Reports built on an Intelligent Cube now get lineage from that cube.
  • Warehouse reports and Live cubes now explain why they have no lineage.

No actionable issues found. Tests were inspected but not run.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Dossier dataset] --> B[Read cube SQL view]
    B -->|SQL available| C[Keep SQL and cube ID together]
    B -->|Dataset is a report| D[Read report source]
    D -->|Source cube exists| E[Read cached source cube SQL]
    E --> C
    D -->|Warehouse report| F[Warn and skip lineage]
    B -->|Live cube| F
    C --> G[Find warehouse tables]
    G --> H[Match columns using source cube type]
    H --> I[Link tables and columns to dataset data model]
Loading

Reviews (1) · Last reviewed commit: "Fixes #37978: MicroStrategy reads a repo..." · Reviewed by Greptile

@Khairajani
Khairajani requested a review from a team as a code owner November 19, 2026 11:17
@Khairajani Khairajani added the safe to test Add this label to run secure Github workflows on PRs label Nov 19, 2026
@Khairajani
Khairajani requested review from akashverma0786 and removed request for a team November 19, 2026 11:17
@github-actions

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 19, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findings

Using source-cube SQL to derive report lineage could associate incorrect warehouse tables or columns with a report dataset.

MicroStrategy report datasets built on an Intelligent Cube now inherit that cube's lineage, and warehouse reports log why they have no lineage. Approved with no open findings.

✅ 1 closed
✅ Edge Case: Report on a Live cube skips the Live-cube warning and logs a raw error

📄 ingestion/src/metadata/ingestion/source/dashboard/microstrategy/client.py:298-312
The Live-cube check lives only in the outer fetch of get_cube_sql_details. When a report's source cube is a Live Intelligent Cube, the inner cached(self._cube_sql, source_cube, lambda: self._sql_view(...)) call gets the LIVE_CUBE error. cached catches it and logs the generic "Could not read the SQL of cube X: GET ... failed: ..." warning. The ADR amendment and the docs promise a warning that explains why there is no lineage, so this path breaks that promise. The fix is to move the LIVE_CUBE check into _sql_view (or a helper that both paths call), so the source-cube path logs the same explanation and returns None.

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

@Khairajani
Khairajani merged commit 2930a1a into 2.1 Nov 19, 2026
51 of 54 checks passed
@Khairajani
Khairajani deleted the mstr-cube-report-source-2.1 branch November 19, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

1 participant