Applies to: Databricks SQL Databricks Runtime
Returns the first date which is later than
expr and named as in
expr: A DATE expression.
dayOfWeek: A STRING expression identifying a day of the week.
dayOfWeek must be one of the following (case insensitive):
In Databricks Runtime, if spark.sql.ansi.enabled is
false, the function returns
NULL instead of an error for a malformed
> SELECT next_day('2015-01-14', 'TU'); 2015-01-20