Skip to content

Fix struct path truncation in v2 SQL generation for nested struct columns#1903

Merged
shangyian merged 4 commits intoDataJunction:mainfrom
shangyian:struct-fix2
Mar 18, 2026
Merged

Fix struct path truncation in v2 SQL generation for nested struct columns#1903
shangyian merged 4 commits intoDataJunction:mainfrom
shangyian:struct-fix2

Conversation

@shangyian
Copy link
Collaborator

@shangyian shangyian commented Mar 18, 2026

Summary

PR #1890 added multi-level struct access support that worked correctly for v3 SQL gen (which embeds SQL verbatim in CTEs) but broke v2 (which calls compile() on the AST).

Test Plan

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

Deployment Plan

@netlify
Copy link

netlify bot commented Mar 18, 2026

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 28432dd
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/69baac8375c513000820cdb0

@shangyian shangyian changed the title Make sure that v2 measures sql can handle struct generation in the sa… Fix struct path truncation in v2 SQL generation for nested struct columns Mar 18, 2026
@shangyian shangyian marked this pull request as ready for review March 18, 2026 14:42
@shangyian shangyian merged commit 1c61c76 into DataJunction:main Mar 18, 2026
17 checks passed
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