We are migrating our stored procedures from Synapse to Databricks. So, in synapse there is a table which has a column of "uniqueidentifier" type. When we do MAX on this column synapse gives us different max value as compared to databricks because in databricks this column is of STRING type (values are same in both cases).
Is there any equivalent of uniqueidentifier in databricks?

Databricks has a function -uuid() - to create GUID values, but the return value will be a string, and Databricks has no special type for GUID and will treat these values as String.
https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/functions/uuid