Repository navigation
Destination BigQuery: Adapt to newer interface for Sync operations - #38132
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. Join Gireesh Sreepathi (@gisripa) and the rest of your teammates on |
dc2606b to
f6903b7
Compare
cf2bbfc to
1a9f866
Compare
f6903b7 to
cf090a7
Compare
1a9f866 to
3a389ad
Compare
0460083 to
27931dc
Compare
c5c5f41 to
a8c0782
Compare
27931dc to
96ad3be
Compare
a8c0782 to
f13bbc2
Compare
96ad3be to
b64a0d5
Compare
f13bbc2 to
801d603
Compare
b64a0d5 to
58a377a
Compare
801d603 to
eefa86b
Compare
58a377a to
0ee722d
Compare
eefa86b to
72bf6f6
Compare
0ee722d to
0d6dcd2
Compare
72bf6f6 to
20b118f
Compare
16b6c02 to
3488a4c
Compare
20b118f to
4021e64
Compare
3488a4c to
025c536
Compare
Edward Gao (edgao)
left a comment
There was a problem hiding this comment.
(assuming our test syncs look good)
There was a problem hiding this comment.
12h??? WTF?
There was a problem hiding this comment.
what does that mean when a job doesn't exist? Should we throw an exception?
There was a problem hiding this comment.
I'm not sure when this case occurs, (followed javadoc implementation suggestion). Earlier we aren't even using the returned completedJob value and their status.
There was a problem hiding this comment.
might be worth explaining why we do a substraction. I'm not sure myself, TBH
See this comment inline on Graphite.
There was a problem hiding this comment.
this is ugly as sin. Are you sure we didn't forget to iterate on the iterateAll iterator?
There was a problem hiding this comment.
thank you for removing this Impl class...
There was a problem hiding this comment.
I feel like we should explicitely state the types of those objects.
There was a problem hiding this comment.
oh this is ugly. BigQueryUtils.getLoadingMethod returns an enum, but here we get a jsonNode from the same field that's used by getLoadingMethod... Something to clean up and figure out I guess
There was a problem hiding this comment.
Yup. Didn't take a pass at cleaning the configs in this PR because BigQuery is one hairy config extraction in BigQueryUtils.
There was a problem hiding this comment.
this all really should be in the CDK...
There was a problem hiding this comment.
do we want a dependency on some obscure package that hasn't been maintained in 3 years?
There was a problem hiding this comment.
tried removing but it has some zip the stream method which we have to implement or use alternative (not difficult just ignored in this PR). Will take a pass later in the refreshes PR.
There was a problem hiding this comment.
does permissionsCheckStatuslist.withIndex work here? This function is an example of a place where types are far from obvious and should be set explicitely.
I'd rather convert the returned list into a Map<Permission, IsEnabled> than going index-based: REQUIRED_PERMISSIONS.zip(permissionsCheckStatusList).toMap(). Then, missingPermissions becomes map.filterValues
There was a problem hiding this comment.
Yup, see above comment about StreamUtils
There was a problem hiding this comment.
why aren't we reusing the message here?
There was a problem hiding this comment.
stale comment?
There was a problem hiding this comment.
why do we ever try to deserialize the string ourselves?
There was a problem hiding this comment.
This is the most ugly one where the serviceAccountKey was at one point text vs json. so trying to deduce which one it is.
|
it looks like we both converted from java to kotlin and added some logic in the same PR. Am I correct? Any chance we could split those 2? |
No conversion from Kotlin, complete rewrite and delete of the old classes. Originally was in 2 stacks then folder because Ed was obsolete classes which are deleted down the stack anyway |

What
Adapting BigQuery to use #38107
Review guide
Deleted old code which is no longer activated or used under
src/main/java.Minor changes based on CDK signature changes in existing code which isn't deleted.
New code in
src/main/kotlinUser Impact
Can this PR be safely reverted and rolled back?