Skip to content
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

Destination Redshift: failed normalization with field larger than 65k #13734

Closed
mjkanji opened this issue Jun 13, 2022 · 2 comments
Closed

Destination Redshift: failed normalization with field larger than 65k #13734

mjkanji opened this issue Jun 13, 2022 · 2 comments

Comments

@mjkanji
Copy link

mjkanji commented Jun 13, 2022

Environment

  • Airbyte version: 0.39.17-alpha
  • OS Version / Instance: AWS EC2 Linux
  • Deployment: Docker
  • Source Connector and version: Zendesk Support 0.2.9
  • Destination Connector and version: Redshift 0.3.39
  • Step where error happened: Normalization

Current Behavior

The job fails at the normalization stage with the following error:

[error] [MainThread]: Database Error in model tickets_scd (models/generated/airbyte_incremental/scd/zendesk/tickets_scd.sql)
[error] [MainThread]:   Invalid input
[error] [MainThread]:   DETAIL:  
[error] [MainThread]:     -----------------------------------------------
[error] [MainThread]:     error:  Invalid input
[error] [MainThread]:     code:      8001
[error] [MainThread]:     context:   CONCAT() result too long for type varchar(65535)
[error] [MainThread]:     query:     4105572
[error] [MainThread]:     location:  string_ops.cpp:110
[error] [MainThread]:     process:   query0_119_4105572 [pid=17694]
[error] [MainThread]:     -----------------------------------------------
[error] [MainThread]:   compiled SQL at ../build/run/airbyte_utils/models/generated/airbyte_incremental/scd/zendesk/tickets_scd.sql

Reverting back to destination Redshift version 0.3.28 solves this problem, so I'm guessing it has something to do with the recent changes relating to the SUPER data type (#12064) and the maximum record size (#12940).

Expected Behavior

Normalization should happen successfully.

Logs

error_log.txt

Steps to Reproduce

  1. Create a connection between Stripe and Redshift (with the COPY strategy)
  2. Sync the tickets stream with sync mode Incremental | Deduped + History
  3. Reset and run a sync job.

Are you willing to submit a PR?

No.

@mjkanji mjkanji added needs-triage type/bug Something isn't working labels Jun 13, 2022
@marcosmarxm marcosmarxm changed the title Zendesk <> Redshift failing at normalization Destination Redshift: failed normalization with field larger than 65k Jun 14, 2022
@marcosmarxm marcosmarxm removed needs-triage autoteam team/tse Technical Support Engineers labels Jun 14, 2022
@marcosmarxm
Copy link
Member

Workaround rollback Redshift to version 0.2.28

@alafanechere
Copy link
Contributor

Duplicate of #14441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants