Skip to content

Fix GraphQL materialization plan crash and log_resolver traceback#2027

Merged
shangyian merged 1 commit intoDataJunction:mainfrom
shangyian:fix-resolver-log
Apr 19, 2026
Merged

Fix GraphQL materialization plan crash and log_resolver traceback#2027
shangyian merged 1 commit intoDataJunction:mainfrom
shangyian:fix-resolver-log

Conversation

@shangyian
Copy link
Copy Markdown
Collaborator

@shangyian shangyian commented Apr 19, 2026

Summary

  • materialization_plan crashes with KeyError when a dimension or filter referenced a node that didn't exist. After this change it silently skips missing nodes instead of crashing the entire query.
  • log_resolver used raise exc which can lose the original traceback in some contexts. Changed to bare raise.

Test Plan

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

Deployment Plan

…ix log resolver to preserve original traceback
@shangyian shangyian added the bug Something isn't working label Apr 19, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 19, 2026

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 88b7009
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/69e4991aa2835a0008812496

@shangyian shangyian changed the title Fix materialization plan to skip missing nodes instead of crashing. F… Fix GraphQL materialization plan crash and log_resolver traceback Apr 19, 2026
@shangyian shangyian marked this pull request as ready for review April 19, 2026 09:19
@shangyian shangyian merged commit d23e35a into DataJunction:main Apr 19, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant