Skip to content

Destination snowflake: pull in cdk update for refreshes bugfix - #42505

Merged
Edward Gao (edgao) merged 1 commit into
masterfrom
edgao/snowflake_refreshes_bugfix
Aug 20, 2024
Merged

Edward Gao (edgao) merged 1 commit into
masterfrom
edgao/snowflake_refreshes_bugfix

Conversation

@edgao

Copy link
Copy Markdown
Contributor

What

How

Review guide

User Impact

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

@edgao
Edward Gao (edgao) requested a review from a team as a July 24, 2024 18:01
@vercel

vercel Bot commented Jul 24, 2024 •

Copy link
Copy Markdown

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:13pm

Edward Gao (edgao) commented Jul 24, 2024 •

Copy link
Copy Markdown
Contributor Author

@edgao
Edward Gao (edgao) force-pushed the edgao/refreshes_recover_from_real_raw_table branch from d59f5d8 to 3d9cf10 Compare July 24, 2024 18:19
@edgao
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch from 77b72fe to b985ca0 Compare July 24, 2024 18:20
@edgao
Edward Gao (edgao) force-pushed the edgao/refreshes_recover_from_real_raw_table branch from 3d9cf10 to 341ae0d Compare July 26, 2024 17:45
@edgao
Edward Gao (edgao) force-pushed the edgao/refreshes_recover_from_real_raw_table branch from 341ae0d to 8a53e44 Compare July 26, 2024 20:29
@edgao
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch from b985ca0 to f5a8432 Compare July 26, 2024 20:29
@edgao
Edward Gao (edgao) force-pushed the edgao/refreshes_recover_from_real_raw_table branch from 8a53e44 to 3922cf7 Compare July 26, 2024 22:44
@edgao
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch from f5a8432 to 4ae80f3 Compare July 26, 2024 22:45
@edgao
Edward Gao (edgao) force-pushed the edgao/refreshes_recover_from_real_raw_table branch from 3922cf7 to b9bf10d Compare July 29, 2024 16:33
@edgao
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch from 4ae80f3 to 5ff87eb Compare July 29, 2024 16:34
@edgao
Edward Gao (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
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch from 5ff87eb to 789e96e Compare August 2, 2024 20:00
@edgao
Edward Gao (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
Edward Gao (edgao) force-pushed the edgao/refreshes_recover_from_real_raw_table branch from 1d5f768 to dd2e935 Compare August 12, 2024 17:18
@edgao
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch from 789e96e to c5f785b Compare August 12, 2024 17:19
@edgao
Edward Gao (edgao) force-pushed the edgao/refreshes_recover_from_real_raw_table branch from dd2e935 to 707b94d Compare August 12, 2024 18:40
@edgao
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch from c5f785b to 1498c42 Compare August 12, 2024 18:41
@edgao
Edward Gao (edgao) changed the base branch from edgao/refreshes_recover_from_real_raw_table to edgao/more_refresh_tests August 12, 2024 18:41
@edgao
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch from aa23f1e to 63e82e9 Compare August 14, 2024 18:13
@edgao
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch 5 times, most recently from 9154766 to a84bd37 Compare August 14, 2024 21:47
@edgao
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch 3 times, most recently from 0e80ea3 to 445f5cc Compare August 16, 2024 16:47

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

switching to lateinit b/c otherwise the compiler complains about databaseName potentially changing values between its assignment on line 53 and its usage in cleanAirbyteInternalTable on 57 >.>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This spotbugs thing is really confusing when it is ok with lateinit and when it is not (I need to figure out how to logically reason about this)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I still have no idea why spotbugs yells at everyone else about lateinit, I've never had it happen to me >.>

@edgao
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch 2 times, most recently from 60aeb76 to ce6c207 Compare August 16, 2024 18:06
@edgao
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch from ce6c207 to da85a99 Compare August 16, 2024 20:10
@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) added area/documentation Improvements or additions to documentation and removed CDK Connector Development Kit labels Aug 16, 2024
results.first().get(JavaBaseConstants.COLUMN_NAME_AB_GENERATION_ID.uppercase())
}
return generationIdNode?.asLong()
return generationIdNode?.asLong() ?: 0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are there any implications at the caller if it is interpreted as 0 instead of null ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, this is the same fix as #42506 (comment)

(i.e. a record with null gen ID should be treated as gen 0, not as belonging to "current generation")

Base automatically changed from edgao/more_refresh_tests to edgao/refreshes_recover_from_real_raw_table August 19, 2024 16:27
@edgao
Edward Gao (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
Edward Gao (edgao) force-pushed the edgao/snowflake_refreshes_bugfix branch from da85a99 to 5cfdc8d Compare August 19, 2024 18:08
@edgao
Edward Gao (edgao) merged commit 7ba3e2d into master Aug 20, 2024
@edgao
Edward Gao (edgao) deleted the edgao/snowflake_refreshes_bugfix branch August 20, 2024 15:31

This branch was successfully deployed

1 active deployment
Preview — 5cfdc8d5 Deployed Aug 19, 2024 by vercel[bot]
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/snowflake

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants