Repository navigation
[2.0] Fixes #37978: MicroStrategy reads a report dataset's lineage from its source cube - #37980
Conversation
… source cube (cherry picked from commit 0d45418)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
…nly in an evictable cache (cherry picked from commit 1b07f4f)
The report and parse caches could evict a report while the SQL cache still held it, so the report was matched as a schema cube and lost its column pairs.
Code Review ✅ Approved 🟡 Medium risk 2 closed / 2 findingsReading report lineage from its source cube changes dependency attribution; an incorrect source mapping could misstate downstream data lineage. MicroStrategy report datasets now inherit lineage from their source Intelligent Cube, with the cube kept alongside its parsed SQL so lineage survives report cache eviction. Two resolved findings covered cube loss after eviction, and no open issues remain. ✅ 2 closed✅ Edge Case: cube_behind can lose a report's cube once _report_cubes evicts it
✅ Edge Case: Report's cube can still be lost when _cube_sql hits after eviction
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #37978
Backport of #37979 to
2.0: a MicroStrategy dataset that is a report built on an Intelligent Cube gets the cube's lineage, and the warnings for warehouse reports, prompted reports and Live cubes say why they have no lineage. A clean cherry-pick; the connector code is identical tomain.Type of change:
Tests:
Checklist:
[2.0] Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code
Summary by Gitar
CubeSqlandget_report_cubesql_cubeThis will update automatically on new commits.


Confidence Score: 5/5
The PR appears safe to merge; the source cube stays attached to its SQL across cache eviction.Summary
MicroStrategy report datasets now read lineage from their source Intelligent Cube.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR A[Report dataset] --> B[Read source cube] B --> C[Cache SQL with cube ID] C --> D[Parse tables and columns] D --> E[Use cube subtype to match columns] E --> F[Report data model lineage]Reviews (4) · Last reviewed commit: "MicroStrategy: cache a report's source c..." · Reviewed by Greptile