zhengruifeng commented on code in PR #42791: URL: https://github.com/apache/spark/pull/42791#discussion_r1314419285
########## python/pyspark/sql/connect/functions.py: ########## @@ -552,15 +552,23 @@ def cbrt(col: "ColumnOrName") -> Column: cbrt.__doc__ = pysparkfuncs.cbrt.__doc__ -def ceil(col: "ColumnOrName") -> Column: - return _invoke_function_over_columns("ceil", col) +def ceil(col: "ColumnOrName", scale: Optional[Union[Column, int]] = None) -> Column: Review Comment: scala only accept foldable expression, so not support `ColumnName` here ########## python/pyspark/sql/connect/functions.py: ########## @@ -552,15 +552,23 @@ def cbrt(col: "ColumnOrName") -> Column: cbrt.__doc__ = pysparkfuncs.cbrt.__doc__ -def ceil(col: "ColumnOrName") -> Column: - return _invoke_function_over_columns("ceil", col) +def ceil(col: "ColumnOrName", scale: Optional[Union[Column, int]] = None) -> Column: Review Comment: `scale` only accepts foldable expression, so not support `ColumnName` 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. 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