Description
Hello all,
According to ANSI compliance, the next_day function should throw an runtime exception when receiving invalid value for dayOfWeek, exemple receiving "xx" instead of "SUNDAY".
A similar improvement has been done on the element_at function: https://issues.apache.org/jira/browse/SPARK-33386
If you agree with this proposition, i can submit a pull request with necessary change.
Kind regardes,