Closed mastermel closed 1 month ago
I've not dug into this too deeply yet, but could it be due to the postgres
template not having values for either variable.timestampz_layout_str
or variable.timestamp_layout_str
?
I'm guessing the issue arises within ReadFromDB()
on line 113 of core/sling/task_run_read.go
. If srcConn.GetTemplateValue("variable.timestampz_layout_str")
returns an empty string, wouldn't g.R(timestampTemplate, "value", startValue)
then also result in startValue
and endValue
being empty?
Yep, that seems to have fixed it and it's working the way I would expect on the current dev build 👍
Issue Description
I am replicating a PostgreSQL materialized view using an
update_key
set to a column of typetimestampz
. This worked fine on sling version1.2.13
and is now failing on version 1.2.20. Below is the effective PostgreSQL schema for the materialized view that is my source stream:sling --version
):linux
,mac
,windows
):Official docker container running slingdata/sling:v1.2.20 on Ubuntu 22.04
-d
):