Skip to content

feat(optimizer): Annotate type for snowflake MOD function#6031

Merged
georgesittas merged 3 commits intomainfrom
RD-1042502-annotate-type-for-mod-function
Oct 8, 2025
Merged

feat(optimizer): Annotate type for snowflake MOD function#6031
georgesittas merged 3 commits intomainfrom
RD-1042502-annotate-type-for-mod-function

Conversation

@fivetran-amrutabhimsenayachit
Copy link
Collaborator

Annotate type for snowflake MOD function.

Documentation:
https://docs.snowflake.com/en/sql-reference/functions/mod

Copy link
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

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

I'll get this in and add the tests back.

Comment on lines -326 to -336
# dialect: bigquery
FLOOR(1);
DOUBLE;

# dialect: bigquery
FLOOR(5.5);
DOUBLE;

# dialect: bigquery
FLOOR(tbl.bignum_col);
BIGDECIMAL;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Was this an oversight? Removing them doesn't look right.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It got added from the PR - #6030, removed this code since it is not related to MOD.

Copy link
Collaborator

Choose a reason for hiding this comment

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

These tests are not the same as those added in #6030 though, they're targeting BigQuery.

@georgesittas georgesittas merged commit 8e03ad9 into main Oct 8, 2025
6 checks passed
@georgesittas georgesittas deleted the RD-1042502-annotate-type-for-mod-function branch October 8, 2025 09:34
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.

2 participants