IICS -用生成的值填充TIMESTAMP_TZ列



我正在尝试使用来自Taskflow的Informatica IICS填充Snowflake中的TIMESTAMP_TZ列。在任务流中,我使用函数fn:current-dateTime(),我正在尝试在映射中使用to_date()函数转换为TIMESTAMP_TZ,但我得到错误

MAPPING> TE_7002 [2023-01-17 11:07:50.987] Transformation stopped due to a fatal error in the mapping.  The expression [To_Date($$inp_load_dttm)] contains the following errors [<<PM Parse Error>> [$$inp_load_dttm)]: Invalid date value string: >>>2023-01-17T16:06:58.019Z<<<.
... To_Date(>>>>$$inp_load_dttm<<<<)].
MANAGER> PETL_24005 [2023-01-17 11:07:50.988] Starting post-session tasks. : (Tue Jan 17 11:07:50 2023)

fn:current-dateTime()返回date(ref 1)。to_date期望一个字符串(ref 2)。在这种情况下,您不应该尝试将date转换为date-它应该简单地工作。如果您只需要日期而不需要时间,请尝试使用fn:current-date()

最新更新