An Azure relational database service.
If you are using PySpark with Databricks, then you will find here examples of how to use not only Max aggregate funcions but other functions to.
Put all values in an array, explode it and then max that. For example:
%sql
WITH cte AS
(
SELECT *, EXPLODE( ARRAY( date1, date2 ) ) xmax
FROM tmp
)
SELECT MAX( xmax )
FROM cte