Skip to content

Conversation

@betodealmeida
Copy link
Member

Bump sqlglot to the latest version. There are 2 problems with this:

  1. The .walk() method yields only nodes, instead of tuples.
  2. Some Jinja can now be parsed correctly as SQL structs, resulting invalid expressions for metrics. I fixed this by detecting Jinja and falling back to the regex-based replacer.

Copy link
Contributor

@Vitor-Avila Vitor-Avila left a comment

Choose a reason for hiding this comment

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

Thank you so much!

@betodealmeida betodealmeida merged commit a0e5ce1 into main May 29, 2025
5 checks passed
@betodealmeida betodealmeida deleted the update-sqlglot branch May 29, 2025 12:54
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.

3 participants