Skip to content

Reduce time spent making db calls when building SQL by eager loading …#1567

Draft
shangyian wants to merge 3233 commits intoDataJunction:mainfrom
shangyian:sql-gen-eager-load
Draft

Reduce time spent making db calls when building SQL by eager loading …#1567
shangyian wants to merge 3233 commits intoDataJunction:mainfrom
shangyian:sql-gen-eager-load

Conversation

@shangyian
Copy link
Copy Markdown
Collaborator

…once

Summary

Test Plan

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

Deployment Plan

agorajek and others added 30 commits January 27, 2025 21:55
…on-0.0.1a84

Bump DataJunction version to 0.0.1a84
…dims-bug

Fix bug with displaying required dimensions for metrics
In calculating the COUNT, if we use COUNT(1), we will get the COUNT of another column, which may have a differet number of non-null values than the one we're interested in
…unt-bug

[fix] bug in how AVG is decomposed into measures
…on-0.0.1a85

Bump DataJunction version to 0.0.1a85
shangyian and others added 24 commits October 9, 2025 03:00
* Switch to single transaction deploys so that we don't need to run multiple db transactions in parallel

* Fix various minor bugs: tags should be updated rather than appended to, roles should be taken into account when comparing dimension links, and when searching for source tables, we should deduplicate
…les (DataJunction#1528)

* Support querying across multiple hops on the dimensions graph with roles

* Fix tests

* Add check for columns

* Fix tests
Co-authored-by: GitHub Actions Bot <>
Co-authored-by: GitHub Actions Bot <>
* Add better handling for deploying source nodes

* Fix tests
Co-authored-by: GitHub Actions Bot <>
* Handle catching rollback failures in session manager

* Fix session reuse when compiling node sql

* Revert "Fix session reuse when compiling node sql"

This reverts commit e877420.

* Revert "Handle catching rollback failures in session manager"

This reverts commit 1386dc0.

* Fix compiling node queries
Co-authored-by: GitHub Actions Bot <>
* Add support deleting nodes via the DJ CLI

* Add tests for cli deletions

* Fix tests
Co-authored-by: GitHub Actions Bot <>
* Update postgres data directory to new postgres 18 structure

* include principalkind in when creating dj user in demo setup
* Add additional cli functionality

* Handle error cases, docs, full test coverage

* Add support for multiple dimensions and filters
…de details edit page (DataJunction#1547)

* Fix custom_metadata field bug and make some other small changes to node details page

* make lint

* prettier

* update UI test

* fix server test

* Fix default for custom metadata

* Fix test

* Change back to is None check

---------

Co-authored-by: Yian Shang <yian.shang@gmail.com>
Co-authored-by: GitHub Actions Bot <>
…nction#1550)

* Switch to using the same codemirror editor for custom metadata editing

* Fix
* MAX_BY and MIN_BY functions cannot be decomposed, so metric decomposition should reflect that

* Fix tests

* Remove unused part of query ast update after max_by decomposition
Co-authored-by: GitHub Actions Bot <>
* If a role path is provided, should stick to the role path

* Enable role path dimensions in filters
Manage filters and dimensions resolution correctly
Fix tests

* Fix tests

* Add test for storing cubes that have dimensions with role paths

* Fix
…1552)

* When using the DJ client to retrieve metrics data, rename all output columns from their physical names to their semantic names

* Fix

* Fix tests
* Fix some inconsistencies with metric display name for cubes when deployed
make cube deployment part of singular commit

* Remove extraneous CreateCube input map

* Fix

* Fix cube deployment validation

* Refactor batch load of metrics and dimensions as separate functions

* Make sure that we can set tags for cubes

* Fix tests

* Fix and cleanup tests

* Fix tests
Co-authored-by: GitHub Actions Bot <>
Update YAML docs given new deployment setup
Co-authored-by: GitHub Actions Bot <>
@netlify
Copy link
Copy Markdown

netlify bot commented Nov 21, 2025

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit f7dbeec
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/691fc012816c03000808b12d

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.

6 participants