Skip to content

Commit 958487d

Browse files
committed
in dremio, removing the micro/nano seconds because dremio support mili seconds only when filtering
1 parent 1f753cb commit 958487d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macros/utils/data_types/cast_column.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{%- endmacro -%}
3030

3131
{%- macro dremio__edr_cast_as_timestamp(timestamp_field) -%}
32-
cast({{ timestamp_field }} as {{ elementary.edr_type_timestamp() }})
32+
cast(REGEXP_REPLACE({{ timestamp_field }}, '(\.\d{3})\d+', '$1') as {{ elementary.edr_type_timestamp() }})
3333
{%- endmacro -%}
3434

3535
{%- macro edr_cast_as_float(column) -%}

0 commit comments

Comments
 (0)