Skip to content

Fix: pass dialect to name field value converter#1949

Merged
eakmanrq merged 2 commits intoSQLMesh:mainfrom
z3z1ma:fix/meta-converter-dialect
Jan 10, 2024
Merged

Fix: pass dialect to name field value converter#1949
eakmanrq merged 2 commits intoSQLMesh:mainfrom
z3z1ma:fix/meta-converter-dialect

Conversation

@z3z1ma
Copy link
Contributor

@z3z1ma z3z1ma commented Jan 10, 2024

External models are written like this:

image

But they fail when the method render definition is called due to the meta converter lookup not having a dialect argument.

image

This PR fixes that with what is likely the correct behavior

@izeigerman
Copy link
Contributor

@z3z1ma This looks really great, thank you 👍 Any chance you can add a small test for this? Good to go otherwise

@z3z1ma z3z1ma requested a review from tobymao January 10, 2024 15:11
Copy link
Contributor

@eakmanrq eakmanrq left a comment

Choose a reason for hiding this comment

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

Thanks for this @z3z1ma!

@eakmanrq eakmanrq merged commit c1cda7e into SQLMesh:main Jan 10, 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.

4 participants