Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: custom dimensions can reference dimensions #10041

Merged
merged 3 commits into from May 13, 2024

Conversation

ZeRego
Copy link
Contributor

@ZeRego ZeRego commented May 10, 2024

Closes: #10022

Description:

What this PR includes:

SQL input should autocomplete dimensions references
generated SQL should use SQL from the referred dimension
generated SQL should join necessary tables based on referred dimensions

What this PR doesn't include:

reference other custom dimensions

Preview

Screenshot 2024-05-10 at 16 22 08 Screenshot 2024-05-10 at 15 35 43 Screenshot 2024-05-10 at 15 35 35

Reviewer actions

  • I have manually tested the changes in the preview environment
  • I have reviewed the code
  • I understand that "request changes" will block this PR from merging

@ZeRego ZeRego requested a review from a team May 10, 2024 15:33
@ZeRego ZeRego self-assigned this May 10, 2024
@ZeRego ZeRego requested review from almeidabbm and removed request for a team May 10, 2024 15:33
@owlas owlas requested a deployment to feat/custom-sql-dimension-references - jaffle_db_pg_13 PR #10041 May 10, 2024 15:33 — with Render Abandoned
@owlas owlas temporarily deployed to feat/custom-sql-dimension-references - headless-browser PR #10041 May 10, 2024 15:33 — with Render Destroyed
Copy link

netlify bot commented May 10, 2024

Deploy Preview for peaceful-bassi-cbf284 canceled.

Name Link
🔨 Latest commit 9d4313b
🔍 Latest deploy log https://app.netlify.com/sites/peaceful-bassi-cbf284/deploys/663e3e38c85a590008b76ad0

@ZeRego ZeRego changed the title Feat/custom sql dimension references feat: custom dimensions can reference dimensions May 10, 2024
@ZeRego ZeRego requested a review from owlas May 10, 2024 15:34
@owlas owlas temporarily deployed to feat/custom-sql-dimension-references - lightdash PR #10041 May 10, 2024 15:35 — with Render Destroyed
Copy link
Contributor

@almeidabbm almeidabbm left a comment

Choose a reason for hiding this comment

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

Tested locally, lgtm 🚀

@ZeRego ZeRego merged commit 9137595 into main May 13, 2024
46 of 53 checks passed
@ZeRego ZeRego deleted the feat/custom-sql-dimension-references branch May 13, 2024 12:02
lightdash-bot pushed a commit that referenced this pull request May 13, 2024
# [0.1092.0](0.1091.0...0.1092.0) (2024-05-13)

### Features

* custom dimensions can reference dimensions ([#10041](#10041)) ([9137595](9137595))
@lightdash-bot
Copy link
Collaborator

🎉 This PR is included in version 0.1092.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reference other dimensions inside custom dimensions
4 participants