You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
date_or_time_part
The unit of time. Must be one of the values listed in Supported Date and Time Parts (e.g. month). The value can be a string literal or can be unquoted (e.g. 'month' or month).
However, when using the unquoted argument like YEAR instead of 'YEAR', qualify sees the argument as a column and attempts to resolve it in the schema. For example you can see the code block below:
As stated in the snowflake documentation the signature for timediff
TIMEDIFF( <date_or_time_part> , <date_or_time_expr1> , <date_or time_expr2> )
However, when using the unquoted argument like
YEAR
instead of'YEAR'
, qualify sees the argument as a column and attempts to resolve it in the schema. For example you can see the code block below:Results in
The text was updated successfully, but these errors were encountered: