Skip to content

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

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

turb
Copy link
Contributor

@turb turb commented Jan 23, 2025

No description provided.

@@ -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))
Copy link
Contributor

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 ?

Copy link
Contributor Author

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...

Copy link
Contributor Author

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))
Copy link
Contributor

Choose a reason for hiding this comment

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

Oops. Good catch

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 61.28%. Comparing base (db7b14e) to head (ae81e3d).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...scala/com/spotify/scio/snowflake/SnowflakeIO.scala 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@turb turb force-pushed the snowflake-write-opts branch from 0723400 to ae81e3d Compare January 23, 2025 12:45
@RustedBones RustedBones merged commit d5d20ad into spotify:main Jan 23, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants