Pilsner
Databricks Partner

Hello @collierd ,

The way I would tackle this would involve data time specifiers. Because your value is likely stored as a timestamp which you can see via the catalog explorer, you cannot compare it to a string value such as "2025-08-27T10:50:31.610+00:00".

Screenshot 2025-08-27 130439.png


To get around this you can use date time specifiers to convert the string into a timestamp using the below code:

 to_timestamp('2025-08-27T10:50:31.610+00:00', "yyyy-MM-dd'T'HH:mm:ss.SSSXXX")

Screenshot 2025-08-27 130219.png

If your curious about these date time specifiers there is a fill list of them available here:
https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-datetime-pattern

The basic idea is that you select the relevant specifier (i.e "y" for year) then repeat this character to match the length of the string (so for a 4 digit year you get "yyyy").

I hope this helps but feel free to ask any further questions.

Regards - Pilsner



View solution in original post