-
Notifications
You must be signed in to change notification settings - Fork 97
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
SNOW-826772 Unification of Snowflake role and user for Snowpipe Streaming #650
Conversation
Codecov Report
@@ Coverage Diff @@
## master #650 +/- ##
==========================================
- Coverage 88.02% 88.01% -0.02%
==========================================
Files 50 50
Lines 4124 4137 +13
Branches 445 448 +3
==========================================
+ Hits 3630 3641 +11
- Misses 327 329 +2
Partials 167 167
... and 6 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
lgtm!
if (ingestionMethodConfig == IngestionMethodConfig.SNOWPIPE_STREAMING) { | ||
final String providedSFRoleInConfig = conf.get(Utils.SF_ROLE); | ||
if (!Strings.isNullOrEmpty(providedSFRoleInConfig)) { | ||
LOGGER.debug("Using provided role {} for JDBC connection.", providedSFRoleInConfig); |
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.
Could we combine the log here with the one in the else branch?
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.
And I suggest to use INFO since DEBUG logging at this point is useless due to the large number of debug logging in the ingest SDK
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, makes sense. no harm in using info.
src/main/java/com/snowflake/kafka/connector/internal/InternalUtils.java
Outdated
Show resolved
Hide resolved
src/main/java/com/snowflake/kafka/connector/internal/InternalUtils.java
Outdated
Show resolved
Hide resolved
src/main/java/com/snowflake/kafka/connector/internal/InternalUtils.java
Outdated
Show resolved
Hide resolved
* @param sslEnabled is sslEnabled? | ||
* @return Properties object which will be passed down to JDBC connection | ||
*/ | ||
static Properties createProperties(Map<String, String> conf, boolean sslEnabled) { |
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.
can we add snowpipe something to this method name (createPropertiesForSnowpipe) or mention in the comments its for snowpipe?
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 didnt want make number of changes in test classes to reflect this change. I can add comment about using default ingestmethodconfig
Do you need test for this change?
Can anything go wrong with this change?