hvanhovell commented on code in PR #47464: URL: https://github.com/apache/spark/pull/47464#discussion_r1692314400
########## sql/core/src/main/scala/org/apache/spark/sql/functions.scala: ########## @@ -5705,11 +5693,8 @@ object functions { * @group datetime_funcs * @since 3.2.0 */ - def session_window(timeColumn: Column, gapDuration: String): Column = { - withExpr { - SessionWindow(timeColumn.expr, gapDuration) - }.as("session_window") - } + def session_window(timeColumn: Column, gapDuration: String): Column = + session_window(timeColumn, lit(gapDuration)) Review Comment: This is now supported because of the small change I made to ResolveTimeWindows. -- 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