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: pull in cdk update for refreshes bugfix #42506

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

edgao
Copy link
Contributor

@edgao edgao commented Jul 24, 2024

What

How

Review guide

User Impact

Can this PR be safely reverted and rolled back?

  • YES πŸ’š
  • NO ❌

@edgao edgao requested a review from a team as a July 24, 2024 18:02
Copy link

vercel bot commented Jul 24, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
airbyte-docs βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Aug 19, 2024 6:12pm

Copy link
Contributor Author

edgao commented Jul 24, 2024

@edgao edgao force-pushed the edgao/refreshes_recover_from_real_raw_table branch from 3d9cf10 to 341ae0d Compare July 26, 2024 17:45
@edgao edgao force-pushed the edgao/refreshes_recover_from_real_raw_table branch from 341ae0d to 8a53e44 Compare July 26, 2024 20:29
@edgao edgao force-pushed the edgao/redshift_refreshes_bugfix branch from 87cdc45 to f974dfe Compare July 26, 2024 20:29
@edgao edgao force-pushed the edgao/refreshes_recover_from_real_raw_table branch from 8a53e44 to 3922cf7 Compare July 26, 2024 22:44
@edgao edgao force-pushed the edgao/redshift_refreshes_bugfix branch from f974dfe to 328d04b Compare July 26, 2024 22:45
@edgao edgao force-pushed the edgao/refreshes_recover_from_real_raw_table branch from 3922cf7 to b9bf10d Compare July 29, 2024 16:33
@edgao edgao force-pushed the edgao/redshift_refreshes_bugfix branch from 328d04b to 247cec9 Compare July 29, 2024 16:34
@edgao edgao force-pushed the edgao/refreshes_recover_from_real_raw_table branch 2 times, most recently from 087b55b to 7fdef81 Compare August 2, 2024 19:59
@edgao edgao force-pushed the edgao/redshift_refreshes_bugfix branch from 247cec9 to e47bb1c Compare August 2, 2024 20:00
@edgao edgao force-pushed the edgao/refreshes_recover_from_real_raw_table branch 2 times, most recently from ad24e27 to 1d5f768 Compare August 9, 2024 22:46
@edgao edgao force-pushed the edgao/refreshes_recover_from_real_raw_table branch from 1d5f768 to dd2e935 Compare August 12, 2024 17:18
@edgao edgao force-pushed the edgao/redshift_refreshes_bugfix branch from e47bb1c to 990fef6 Compare August 12, 2024 17:19
@edgao edgao force-pushed the edgao/refreshes_recover_from_real_raw_table branch from dd2e935 to 707b94d Compare August 12, 2024 18:40
@edgao edgao force-pushed the edgao/redshift_refreshes_bugfix branch from 990fef6 to d78a87e Compare August 12, 2024 18:41
@edgao edgao force-pushed the edgao/redshift_refreshes_bugfix branch 2 times, most recently from d469631 to 2a7328b Compare August 14, 2024 17:55
@octavia-squidington-iv octavia-squidington-iv requested a review from a team August 14, 2024 17:57
@edgao edgao force-pushed the edgao/redshift_refreshes_bugfix branch 4 times, most recently from e249ff8 to 805863d Compare August 14, 2024 21:45
@@ -100,7 100,7 @@ class RedshiftStagingStorageOperation(
return null
}

return generation.first()[JavaBaseConstants.COLUMN_NAME_AB_GENERATION_ID].asLong()
return generation.first()[JavaBaseConstants.COLUMN_NAME_AB_GENERATION_ID]?.asLong() ?: 0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

previously we only ever queried the temp raw table for generation ID, so it was always nonnull. Now we have to handle the real raw table (where pre-generationId-migration rows have null generation ID), so add this logic.

@edgao edgao force-pushed the edgao/redshift_refreshes_bugfix branch 2 times, most recently from 6c75be4 to 07297ca Compare August 15, 2024 17:56
@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Aug 15, 2024
@edgao edgao force-pushed the edgao/redshift_refreshes_bugfix branch from 07297ca to bcb8299 Compare August 16, 2024 20:10
@@ -7,4 7,4 @@
// And append the records from the second sync
{"_airbyte_extracted_at": "1970-01-01T00:00:02.000000Z", "_airbyte_data": {"id1": 1, "id2": 200, "updated_at": "2000-01-02T00:00:00Z", "_ab_cdc_deleted_at": null, "name": "Alice", "address": {"city": "Seattle", "state": "WA"}}, "_airbyte_generation_id": 43, "_airbyte_meta": {"sync_id": 42, "changes": []}}
{"_airbyte_extracted_at": "1970-01-01T00:00:02.000000Z", "_airbyte_data": {"id1": 1, "id2": 201, "updated_at": "2000-01-02T00:00:00Z", "_ab_cdc_deleted_at": null, "name": "Bob", "address": {"city": "New York", "state": "NY"}}, "_airbyte_generation_id": 43, "_airbyte_meta": {"sync_id": 42, "changes": []}}
{"_airbyte_extracted_at": "1970-01-01T00:00:02.000000Z", "_airbyte_data": {"id1": 1, "id2": 201, "updated_at": "2000-01-02T00:01:00Z", "_ab_cdc_deleted_at": "1970-01-01T00:00:00Z", "_airbyte_generation_id": 43, "_airbyte_meta": {"sync_id": 42, "changes": []}}}
{"_airbyte_extracted_at": "1970-01-01T00:00:02.000000Z", "_airbyte_data": {"id1": 1, "id2": 201, "updated_at": "2000-01-02T00:01:00Z", "_ab_cdc_deleted_at": "1970-01-01T00:00:00Z"}, "_airbyte_generation_id": 43, "_airbyte_meta": {"sync_id": 42, "changes": []}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no idea how this was working previously. The gen ID meta columns were in the airbyte_data blob. Moved the closing curly brace to the correct position.

Base automatically changed from edgao/more_refresh_tests to edgao/refreshes_recover_from_real_raw_table August 19, 2024 16:27
@edgao edgao force-pushed the edgao/refreshes_recover_from_real_raw_table branch 2 times, most recently from 7270022 to 840e346 Compare August 19, 2024 17:15
Base automatically changed from edgao/refreshes_recover_from_real_raw_table to master August 19, 2024 18:07
@edgao edgao force-pushed the edgao/redshift_refreshes_bugfix branch from bcb8299 to 63c8503 Compare August 19, 2024 18:07
@edgao edgao merged commit 6b902f5 into master Aug 20, 2024
34 checks passed
@edgao edgao deleted the edgao/redshift_refreshes_bugfix branch August 20, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/destination/redshift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants