Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions macros/utils/data_types/cast_column.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@

{%- macro clickhouse__edr_cast_as_timestamp(timestamp_field) -%}
coalesce(
toDateTime(
left(splitByChar('+', toString({{ timestamp_field }}))[1], 19)),
toDateTime('1970-01-01 00:00:00')
parseDateTimeBestEffortOrNull(toString({{ timestamp_field }}), 'UTC'),
toDateTime('1970-01-01 00:00:00', 'UTC')
)
{%- endmacro -%}

Expand Down
Loading