Skip to content

source-postgres: TIMESTAMP_WITH_TIMEZONE column can't be used as cursor #13603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alafanechere opened this issue Jun 8, 2022 · 1 comment · Fixed by #13655
Closed

source-postgres: TIMESTAMP_WITH_TIMEZONE column can't be used as cursor #13603

alafanechere opened this issue Jun 8, 2022 · 1 comment · Fixed by #13655
Assignees
Labels
area/connectors Connector related issues connectors/source/postgres type/bug Something isn't working

Comments

@alafanechere
Copy link
Contributor

Environment

  • Source Connector and version: source-postgres 0.4.21
  • Step where error happened: Sync job

Current Behavior

#13166 enabled the source postgres connector to replicate TIMESTAMP_WITH_TIMEZONE columns. But user can't use this kind of column as a cursor for incremental sync because this type is not handled in setStatementField here.
Leading to the following error:

2022-06-08 07:08:55 e[44msourcee[0m > java.lang.IllegalArgumentException: TIMESTAMP_WITH_TIMEZONE is not supported.
2022-06-08 07:08:55 e[44msourcee[0m > 	at io.airbyte.db.jdbc.JdbcSourceOperations.setStatementField(JdbcSourceOperations.java:86) ~[io.airbyte.airbyte-db-db-lib-0.39.13-alpha.jar:?]

Expected Behavior

Users should be able to use a TIMESTAMP_WITH_TIMEZONE field for cursor in incremental read.

Steps to Reproduce

  1. Create a table with a TIMESTAMP_WITH_TIMEZONE column
  2. Create an incremental sync using this column as a cursor
  3. Run the sync
@remisalmon
Copy link
Contributor

Same/similar issue reported here: #13380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues connectors/source/postgres type/bug Something isn't working
Projects
None yet
3 participants