wypoon commented on code in PR #12117: URL: https://github.com/apache/iceberg/pull/12117#discussion_r1931453264
########## spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/functions/DaysFunction.java: ########## @@ -31,6 +31,8 @@ * A Spark function implementation for the Iceberg day transform. * * <p>Example usage: {@code SELECT system.days('source_col')}. + * + * <p>Alternate form: {@code SELECT system.day('source_col')}. */ public class DaysFunction extends UnaryUnboundFunction { Review Comment: @ebyhr if I understand you correctly, you also suggest introducing a constructor that takes a `String name` and then have `name()` return this name, right? So `new DaysFunction("day")` would return "day" when its `name()` is called, while `new DaysFunction("days")` would return "days". I think that introduces more complexity than it's worth. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org