Skip to content

Conversation

@fivetran-kwoodbeck
Copy link
Collaborator

@fivetran-kwoodbeck fivetran-kwoodbeck commented Dec 4, 2025

Mainly just tests for Snowflake, but in testing I noticed an inconsistency in naming on duckdb. It uses the alias of VAR_SAMP called VARIANCE. I made it consistent so it's VAR_SAMP and VAR_POP, instead of VARIANCE and VAR_POP. sqlglot/dialects/duckdb.py references a VARIANCE_POP which does not seem to exist.

Comment on lines +162 to +163
new_type = exp.DataType.build("DECFLOAT", dialect="snowflake")
self._set_type(expression, new_type)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can do self._set_type(expression, exp.DataType.Type.DECFLOAT) to simplify this a bit.

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