snowflake.snowpark.functions.interval_year_month_from_parts¶
- snowflake.snowpark.functions.interval_year_month_from_parts(years: Optional[Union[Column, str]] = None, months: Optional[Union[Column, str]] = None) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.40.0/src/snowflake/snowpark/functions.py#L10963-L11041)¶
Creates a year-month interval expression using with specified years and months.
This YearMonthInterval is not to be confused with the interval created by make_interval. You can define a table column to be of data type YearMonthIntervalType.
- Parameters:
years – The number of years, positive or negative
months – The number of months, positive or negative
- Returns:
A Column representing a year-month interval
Example: