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

Parity between column-level dimension links and node-level links #926

Merged
merged 6 commits into from
Mar 1, 2024

Conversation

shangyian
Copy link
Contributor

@shangyian shangyian commented Feb 23, 2024

Summary

This PR switches from column-level dimension links to node-level dimension links. The primary motivation for this switch is to make it so that the backend no longer needs to maintain two different storage mechanisms for dimension links -- there should just be a single storage mechanism via the noderevision <--> dimensionlink tables.

The changes cover the first bullet point in #927, and are primarily about reaching parity between the SQL generated via the column-level dimension links versus the node-level dimension links.

Test Plan

Deployment Plan

Copy link

netlify bot commented Feb 23, 2024

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 04fc0e2
🔍 Latest deploy log https://app.netlify.com/sites/thriving-cassata-78ae72/deploys/65de0f9f4d31aa00085e4f00

@shangyian shangyian marked this pull request as ready for review February 26, 2024 19:22
Copy link
Member

@agorajek agorajek left a comment

Choose a reason for hiding this comment

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

This is a tough one for me to review. @CircArgs any chance you could have a look please?

dimension_node,
[NodeType.CUBE],
)
if affected_cubes:
Copy link
Member

Choose a reason for hiding this comment

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

If the previous line ends with or [] then this line may not be needed.

@@ -78,6 +77,9 @@ def _join_path(
if col.dimension and col.dimension.type == NodeType.DIMENSION:
dimensions_to_columns[col.dimension.current].append(col)

# for link in current_node.dimension_links:
Copy link
Member

Choose a reason for hiding this comment

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

forgot to uncomment or not needed?

Copy link
Contributor Author

@shangyian shangyian Feb 27, 2024

Choose a reason for hiding this comment

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

Oh yeah, this is no longer needed. Removed!

@shangyian shangyian merged commit 16fc8ce into DataJunction:main Mar 1, 2024
24 checks passed
@shangyian shangyian deleted the use-node-level-links branch March 1, 2024 22:25
@shangyian shangyian changed the title Switch from column-level dimension links to node-level links Parity between column-level dimension links and node-level links Mar 1, 2024
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.

2 participants