-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
d59f5d8
to
3d9cf10
Compare
ec4786e
to
87cdc45
Compare
3d9cf10
to
341ae0d
Compare
341ae0d
to
8a53e44
Compare
87cdc45
to
f974dfe
Compare
8a53e44
to
3922cf7
Compare
f974dfe
to
328d04b
Compare
3922cf7
to
b9bf10d
Compare
328d04b
to
247cec9
Compare
087b55b
to
7fdef81
Compare
247cec9
to
e47bb1c
Compare
ad24e27
to
1d5f768
Compare
1d5f768
to
dd2e935
Compare
e47bb1c
to
990fef6
Compare
dd2e935
to
707b94d
Compare
990fef6
to
d78a87e
Compare
600b41a
to
19305f5
Compare
d469631
to
2a7328b
Compare
19305f5
to
23a01c7
Compare
e249ff8
to
805863d
Compare
@@ -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 |
There was a problem hiding this comment.
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.
23a01c7
to
5fb7304
Compare
6c75be4
to
07297ca
Compare
5fb7304
to
95ac402
Compare
07297ca
to
bcb8299
Compare
@@ -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": []}} |
There was a problem hiding this comment.
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.
7270022
to
840e346
Compare
bcb8299
to
63c8503
Compare
What
How
Review guide
User Impact
Can this PR be safely reverted and rolled back?