-
Notifications
You must be signed in to change notification settings - Fork 517
Some missing options in SnowflakeIO #5550
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
Conversation
@@ -186,7 +186,7 @@ final case class SnowflakeTable[T](connectionOptions: SnowflakeConnectionOptions | |||
.read[T]() | |||
.fromTable(table) | |||
.withDataSourceConfiguration(dataSourceConfiguration(connectionOptions)) | |||
.withStorageIntegrationName(params.storageIntegrationName) | |||
.pipe(r => Option(params.storageIntegrationName).fold(r)(r.withStorageIntegrationName)) |
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.
isn't this a required parameter on read ?
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.
At one point I got an NPE on this one because unset then null
, but can't find back how I managed to do that...
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.
Makes no difference, removing.
@@ -210,6 +210,7 @@ final case class SnowflakeTable[T](connectionOptions: SnowflakeConnectionOptions | |||
.pipe(w => Option(params.flushTimeLimit).fold(w)(w.withFlushTimeLimit)) | |||
.pipe(w => Option(params.quotationMark).fold(w)(w.withQuotationMark)) | |||
.pipe(w => Option(params.storageIntegrationName).fold(w)(w.withStorageIntegrationName)) | |||
.pipe(w => Option(params.tableSchema).fold(w)(w.withTableSchema)) |
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.
Oops. Good catch
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5550 +/- ##
==========================================
- Coverage 61.31% 61.28% -0.03%
==========================================
Files 314 314
Lines 11249 11250 +1
Branches 770 793 +23
==========================================
- Hits 6897 6895 -2
- Misses 4352 4355 +3 ☔ View full report in Codecov by Sentry. |
0723400
to
ae81e3d
Compare
No description provided.