This is an issue, if this mapping is defined as, e.g., TIMESTAMP_TYPE_MAPPING = TIMESTAMP_LTZ for the whole Snowflake account:
SQL compilation error: Function TIME_SLICE does not support TIMESTAMP_LTZ(9) argument type
Suggested solutions
Solution 1
The connector issues the following query after initializing the session, before running charts' queries:
alter session set TIMESTAMP_TYPE_MAPPING = TIMESTAMP_NTZ;
Solution 2
We replace all to_timestamp() (and related) function calls by explicitly using the timestamp_ntz versions, e.g. to_timestamp_ntz(), try_to_timestamp_ntz()...
Description
Currently this connector uses the generic to_timestamp() functions which depend on the account/user/session parameter TIMESTAMP_TYPE_MAPPING.
This is an issue, if this mapping is defined as, e.g.,
TIMESTAMP_TYPE_MAPPING = TIMESTAMP_LTZ
for the whole Snowflake account:Suggested solutions
Solution 1
The connector issues the following query after initializing the session, before running charts' queries:
Solution 2
We replace all
to_timestamp()
(and related) function calls by explicitly using the timestamp_ntz versions, e.g.to_timestamp_ntz()
,try_to_timestamp_ntz()
...