AngersZhuuuu commented on a change in pull request #33242: URL: https://github.com/apache/spark/pull/33242#discussion_r665022549
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/IntervalUtils.scala ########## @@ -327,8 +327,8 @@ object IntervalUtils { toDTInterval(day, hour, minute, secondAndMicro(second, micro), finalSign(firstSign, secondSign)) - case hourMinuteRegex(sign, hour, minute) => - checkDTIntervalStringDataType(DT(DT.HOUR, DT.MINUTE)) + case hourMinuteRegex(sign, hour, minute) + if startField == DT.HOUR && endField == DT.MINUTE => Review comment: How about to make all place like this? FYI @cloud-fan @MaxGekk -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org