Hi, I am working on a custom connector for airbyte...
# replication-troubleshooting
d
Hi, I am working on a custom connector for airbyte. I’m running into this error during the sync normalization process:
is of type timestamp without time zone but expression is of type text
. In my schema i have configured this column as follows:
Copy code
"block_day": {
            "type": "string",
            "format": "date-time",
            "airbyte_type": "timestamp_without_timezone"
        },
Any ideas on how to resolve this would be appreciated. I’ve tried a couple variations of the configuration and have searched around on the airbyte github issues but haven’t found a solution.
✍️ 1
data for the column looks like this:
"block_day": "2022-10-13T00:00:00"
(from the airbyte raw table)
u
@[DEPRECATED] Marcos Marx turned this thread into Zendesk ticket 2818 to ensure timely resolution!
u
Can you share the complete sync log here?
d
sure one moment
5b7c42b4_0f39_4c22_97b0_96aa29f11f50_logs_9_txt.txt
m
From logs:
Copy code
2022-10-13 19:49:45 [44msource[0m > Setting state of ethereum_contract_calls stream to {'block_day': '2022-10-13'}
Looks the state is saved in date format and not a complete datetime. Can you check if the API is returning this data correctly?
d
i have checked the records are returning a date formated as
YYYY-MM-DDTHH:MM:SS
i am using a date as the state though, not the full date + time
m
my suggestion @David hatch is to first cast the block_day to string, check the output what is happening and after you can move to datetime…