@balaji.ramaswamy how can we resolve the issue? we tried applying regexp_replace and modify the datetime which is missing millisecond. However convert_fromJSON gives error since it can not be applied on transform column
@balaji.ramaswamy Isn’t the T and Z just part of the ISO 8601 standard? Where Z is the timezone. The following works fine in Dremio if you specify what those are:
Or maybe get rid of the data type specification ($date) in the JSON, in which case Dremio will recognize it as a varchar, and you can proceed to cast it to a timestamp specifying the format:
SELECT TO_TIMESTAMP(JSON.createdDate,'YYYY-MM-DD"T"HH24:MI:SSTZD') from (SELECT CONVERT_FROMJSON('{"createdDate": "2019-10-11T23:13:19Z"}') as JSON);