Invalid operation: cannot drop sortkey column "_airbyte_emitted_at"

  • Is this your first time deploying Airbyte?: Yes
  • OS Version / Instance: Ubuntu
  • Memory / Disk: 16Gb / 100 Gb
  • Deployment: Docker
  • Airbyte Version: 0.40.18
  • Source name/version: Oracle 0.3.21
  • Destination name/version: Redshift 0.3.51
  • Step: The issue is happening during sync
  • Description:
    I updated Airbyte version to 0.40.0 to 0.40.18 and some connectors updated automatically. I test my connection from Oracle to Redshift with versions above the syncs fails in the destination given me the message Invalid operation: cannot drop sortkey column "_airbyte_emitted_at"

I test dowgrade the Redshift destination version to last that works 0.3.28 and the connections works.

Complete logs attached.
6e7e2f18_5c8a_4789_a9b9_b303aaddc251_logs_6453_txt.txt (342.2 KB)

Hello there! You are receiving this message because none of your fellow community members has stepped in to respond to your topic post. (If you are a community member and you are reading this response, feel free to jump in if you have the answer!) As a result, the Community Assistance Team has been made aware of this topic and will be investigating and responding as quickly as possible.
Some important considerations that will help your to get your issue solved faster:

  • It is best to use our topic creation template; if you haven’t yet, we recommend posting a followup with the requested information. With that information the team will be able to more quickly search for similar issues with connectors and the platform and troubleshoot more quickly your specific question or problem.
  • Make sure to upload the complete log file; a common investigation roadblock is that sometimes the error for the issue happens well before the problem is surfaced to the user, and so having the tail of the log is less useful than having the whole log to scan through.
  • Be as descriptive and specific as possible; when investigating it is extremely valuable to know what steps were taken to encounter the issue, what version of connector / platform / Java / Python / docker / k8s was used, etc. The more context supplied, the quicker the investigation can start on your topic and the faster we can drive towards an answer.
  • We in the Community Assistance Team are glad you’ve made yourself part of our community, and we’ll do our best to answer your questions and resolve the problems as quickly as possible. Expect to hear from a specific team member as soon as possible.

Thank you for your time and attention.
The Community Assistance Team

Hey @boggdan, sorry to hear you’re running into this issue! I’m looking into this and hope to have some info for you soon!

1 Like

Thanks @natalyjazzviolin I upgraded Airbyte to 0.40.19 but I cannot downgrade the image of the Redshift/Destination to 0.3.28 as usually I did every time that I upgrade to keep the connection works.

My connections now are broken.

I find a solution for my case.

I check the DDL of the table:

 DISTKEY (_airbyte_ab_id)

The destination cannot drop _airbyte_emitted_at because it was sortkey. So I disable de sortkey with:


Docs reference: Amazon Redshift now supports changing table sort keys dynamically

This is really insightful, thanks so much for the details and I’m so glad you were able to find the solution!

1 Like