dongjoon-hyun commented on a change in pull request #25000: [SPARK-28107][SQL] Support 'day to hour', 'day to minute', 'hour to minute' and 'minute to second' URL: https://github.com/apache/spark/pull/25000#discussion_r300808336
########## File path: common/unsafe/src/main/java/org/apache/spark/unsafe/types/CalendarInterval.java ########## @@ -159,8 +159,14 @@ public static CalendarInterval fromYearMonthString(String s) throws IllegalArgum * * adapted from HiveIntervalDayTime.valueOf */ - public static CalendarInterval fromDayTimeString(String s) throws IllegalArgumentException { - CalendarInterval result = null; + public static CalendarInterval fromDayTimeString(String s) { Review comment: We still need `throws IllegalArgumentException` here. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org