dongjoon-hyun commented on code in PR #43858:
URL: https://github.com/apache/spark/pull/43858#discussion_r1396643098
##########
sql/core/src/main/scala/org/apache/spark/sql/functions.scala:
##########
@@ -7268,23 +7268,29 @@ object functions {
* @group partition_transforms
* @since 3.0.0
*/
- def years(e: Column): Column = withExpr { Years(e.expr) }
+ @deprecated(
+ "functions.years is deprecated. Use functions.partition.years", "3.5.1")
+ def years(e: Column): Column = partition.years(e)
Review Comment:
This seems to be a typo. Shall we use `partitioning` instead of `partition`?
```
[error]
/home/runner/work/spark/spark/sql/core/src/main/scala/org/apache/spark/sql/functions.scala:7273:34:
not found: value partition
[error] def years(e: Column): Column = partition.years(e)
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]