-
Notifications
You must be signed in to change notification settings - Fork 427
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
feat: Stream on external table resource #3122
Conversation
Integration tests failure for 62699dfcf52ba6a79d3cffda4dd3676947217df0 |
stream *sdk.Stream, | ||
streamDescription *sdk.Stream, | ||
) error { | ||
if err := d.Set("comment", stream.Comment); err != nil { |
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.
nit: we could use errors.Join(...) and return just one error here. Maybe it does not help that much with only 4 params but at least we return all the errors instead of just the first encountered one
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'll do this in the next PR.
if err != nil { | ||
return nil, err | ||
} | ||
if err := d.Set("name", id.Name()); err != nil { |
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.
nit: these could be extracted because they set a few common stream fields
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'll do this in the next PR.
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.
also depending on the importance of insert_only here the whole import could be entirely replaced by ImportName function
@@ -923,6 +923,63 @@ func TestAcc_View_Issue3073(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func TestAcc_View_IncorrectColumnsWithOrReplace(t *testing.T) { |
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.
nit: can you please reference the GH issue here, it helps to give context when someone will be studying these tests later not from the PR context
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'll do this in the next PR.
if err != nil { | ||
return nil, err | ||
} | ||
if err := d.Set("name", id.Name()); err != nil { |
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.
also depending on the importance of insert_only here the whole import could be entirely replaced by ImportName function
Integration tests failure for 41d3a43dada3cef3705cb1cf7a2ebe85d1b98aaf |
Integration tests cancelled for 63d8e9ff3164f7c04f2d5ede549bb132279bea7a |
Integration tests cancelled for 454bebaa67c3229103ce189c2fec003ced1c47b0 |
🤖 I have created a release *beep* *boop* --- ## [0.97.0](v0.96.0...v0.97.0) (2024-10-10) ### 🎉 **What's new:** * Add secret to sdk ([#3091](#3091)) ([7430aee](7430aee)) * Add service user and legacy service user resources ([#3119](#3119)) ([0e88e08](0e88e08)) * Handle all Task parameters in SDK ([#3103](#3103)) ([08ae072](08ae072)) * Stream on external table resource ([#3122](#3122)) ([d837341](d837341)) * Stream on table resource ([#3109](#3109)) ([97fa9b4](97fa9b4)) * Tasks v1 readiness - SDK part ([#3086](#3086)) ([0a77383](0a77383)) * Upgrade stream sdk ([#3105](#3105)) ([ad5fa11](ad5fa11)) ### 🔧 **Misc** * Add pre check to each datasource ([#3065](#3065)) ([560ab6b](560ab6b)) * Bump golang-ci lint to 1.61 ([#3112](#3112)) ([f23e085](f23e085)) * Secret Validation change ([#3111](#3111)) ([666630e](666630e)) ### 🐛 **Bug fixes:** * Fix parsing text in view, check parenthesis in ParseSchemaObjectIdentifierWithArguments ([#3102](#3102)) ([b0a67e6](b0a67e6)) * Try to reproduce 2679 and 3117 ([#3124](#3124)) ([ccdbc30](ccdbc30)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: snowflake-release-please[bot] <105954990+snowflake-release-please[bot]@users.noreply.github.com>
<!-- Feel free to delete comments as you fill this in --> - add new `snowflake_stream_on_directory_table` resource - adjust SDK to handle non-qualified names for streams' tables - address open comments from the previous [pr](#3122) - recreate streams when they are stale (ref #1150) - change diff suppress on copy_grants - improve procedure grants documentation (ref #3139) <!-- summary of changes --> ## Test Plan <!-- detail ways in which this PR has been tested or needs to be tested --> * [x] acceptance tests <!-- add more below if you think they are relevant --> * [ ] … ## References <!-- issues documentation links, etc --> https://docs.snowflake.com/en/sql-reference/sql/create-stream ## TODO - add streams on views - add streams data source
resource_helpers_create.go
ext
stream_common.go
Test Plan
References
https://docs.snowflake.com/en/sql-reference/sql/create-stream
#3073
TODO