Skip to content

feat: explore graph and subgraphs - #2748

Draft
betodealmeida wants to merge 6 commits into
mainfrom
explore-sv
Draft

betodealmeida wants to merge 6 commits into
mainfrom
explore-sv

Conversation

@betodealmeida

Copy link
Copy Markdown
Member

Summary

Add synthetic Explore semantic views at the root, namespace, and branch discovery levels, allowing clients to query metrics and dimensions without creating a cube.

Explore views use reserved names such as @explore:sales:main. Broader Git scopes default to main. Compatibility endpoints narrow available metrics and dimensions based on reachability, execution target, and cross-fact join requirements. Unsupported queries return INCOMPATIBLE_SELECTION before SQL generation.

Preserves the endpoint contracts: /views requires path; /views/list remains the legacy flat cube listing.

Test Plan

239 focused regression tests passed, covering discovery, authorization, branch scopes, compatibility, derived metrics, SQL generation, and execution. Targeted lint and whitespace checks passed.

  • PR has an associated issue: #
  • make check passes
  • make test shows 100% unit test coverage

Deployment Plan

No database migration required. Refresh the semantic layer metadata cache in clients such as Superset to invalidate previously cached compatibility results.

@netlify

netlify Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit ddfce37
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/6afca3d85d8f2d30cebe4d33

@betodealmeida

Copy link
Copy Markdown
Member Author

@greptile-apps please review kthxbye

@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[High impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Adds scoped @explore views for browsing and querying metrics without creating a cube.

  • Clients can explore metrics and dimensions from each discovery scope.
  • Explore selections now limit which metrics and dimensions can run together.
  • Dimension references expose only the linked column unless a join exists.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Discover an Explore view] --> B[Decode scope and check access]
  B --> C[Load readable metrics and dimensions]
  C --> D[Find compatible selections]
  D --> E[Check query selections]
  E --> F[Generate SQL from live sources]
Loading

Reviews (3) · Last reviewed commit: "Increase coverage" · Reviewed by Greptile

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.

1 participant