-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 snowflake: pull in cdk update for refreshes bugfix #42505
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
77b72fe
to
b985ca0
Compare
3d9cf10
to
341ae0d
Compare
341ae0d
to
8a53e44
Compare
b985ca0
to
f5a8432
Compare
8a53e44
to
3922cf7
Compare
f5a8432
to
4ae80f3
Compare
3922cf7
to
b9bf10d
Compare
4ae80f3
to
5ff87eb
Compare
087b55b
to
7fdef81
Compare
5ff87eb
to
789e96e
Compare
ad24e27
to
1d5f768
Compare
1d5f768
to
dd2e935
Compare
789e96e
to
c5f785b
Compare
dd2e935
to
707b94d
Compare
c5f785b
to
1498c42
Compare
19305f5
to
23a01c7
Compare
9154766
to
a84bd37
Compare
23a01c7
to
5fb7304
Compare
0e80ea3
to
445f5cc
Compare
import org.junit.jupiter.api.Test | ||
|
||
private val LOGGER = KotlinLogging.logger {} | ||
|
||
abstract class AbstractSnowflakeTypingDedupingTest : BaseTypingDedupingTest() { | ||
private var databaseName: String? = null | ||
private lateinit var databaseName: String |
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.
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 >.>
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.
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)
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.
I still have no idea why spotbugs yells at everyone else about lateinit, I've never had it happen to me >.>
60aeb76
to
ce6c207
Compare
5fb7304
to
95ac402
Compare
ce6c207
to
da85a99
Compare
@@ -100,7 +100,7 @@ class SnowflakeStorageOperation( | |||
generationIdNode = | |||
results.first().get(JavaBaseConstants.COLUMN_NAME_AB_GENERATION_ID.uppercase()) | |||
} | |||
return generationIdNode?.asLong() | |||
return generationIdNode?.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.
Are there any implications at the caller if it is interpreted as 0 instead of null ?
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.
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")
7270022
to
840e346
Compare
da85a99
to
5cfdc8d
Compare
What
How
Review guide
User Impact
Can this PR be safely reverted and rolled back?