MSCEWI4060

Datetime interval not supported by Snowflake.

Severity

Medium

Description

This is EWI is added to a function where one of the following datetime intervals, which are not supported by Snowflake, are found as a function parameter:

  • millisecond

  • ms

  • microsecond

  • mcs

  • tzoffset

  • tz

Code Example

Input code

SELECT
  DATEPART(millisecond, getdate()),
  DATEADD(tz, getdate(), 0);

Output code:

Recommendations

Last updated