Skip to content

Commit 46c6970

Browse files
Merge branch 'refs/heads/dev' into remove-account-parameter
# Conflicts: # MIGRATION_GUIDE.md
2 parents 5b009c4 + 7b42fc7 commit 46c6970

File tree

301 files changed

+9416
-3750
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+9416
-3750
lines changed

.cursor/worktrees.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"setup-worktree": [
3+
"make dev-setup"
4+
]
5+
}

.golangci.yml

Lines changed: 37 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,47 @@
1-
run:
2-
timeout: 5m
3-
skip-files: []
4-
# skip-dirs:
5-
6-
linters-settings:
7-
gosimple:
8-
# Disable a rule for linting the generated converters in SDK.
9-
checks: ["-ST1016"]
10-
misspell:
11-
locale: US
12-
depguard:
13-
include-go-root: true
14-
packages:
15-
- github.com/pkg/error
16-
- io/ioutil
17-
revive:
18-
rules:
19-
- name: if-return
20-
disabled: true
21-
testifylint:
22-
disable:
23-
# Do not force using require instead of assert checks.
24-
- require-error
25-
1+
version: "2"
262
linters:
27-
disable-all: true
3+
default: none
284
enable:
29-
- whitespace
30-
# unparam: Checks Go code for unused constants, variables, functions and types
31-
# - unparam # todo: enabled
32-
- gocritic
33-
- misspell
34-
# errcheck: Errcheck is a program for checking for unchecked errors in go programs.
355
- errcheck
36-
# gosimple: Linter for Go source code that specializes in simplifying a code
37-
- gosimple
38-
# govet: Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
6+
- errname
7+
- errorlint
8+
- gocritic
9+
- gosec
3910
- govet
40-
# ineffassign: Detects when assignments to existing variables are not used
4111
- ineffassign
42-
# staticcheck: Finds unused struct fields
43-
- staticcheck
44-
# typecheck: Like the front-end of a Go compiler, parses and type-checks Go code
45-
- typecheck
46-
# Inspects source code for security problems
47-
- gosec
48-
# unconvert: Remove unnecessary type conversions
49-
- unconvert
50-
# Finds slice declarations that could potentially be pre-allocated
12+
- makezero
13+
- misspell
5114
- prealloc
52-
# gofmt: Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
53-
- gofmt
54-
# gofumpt: Gofumpt checks whether code was gofumpt-ed.
55-
- gofumpt
56-
# Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error.
57-
- errname
58-
# errorlint is a linter for that can be used to find code that will cause problems
59-
# with the error wrapping scheme introduced in Go 1.13.
60-
- errorlint
61-
# thelper detects golang test helpers without t.Helper() call and checks the consistency of test helpers
15+
- revive
16+
- staticcheck
17+
- testifylint
6218
- thelper
63-
# wastedassign: wastedassign finds wasted assignment statements.
19+
- unconvert
6420
- wastedassign
65-
# whitespace: Tool for detection of leading and trailing whitespace
6621
- whitespace
67-
# In addition to fixing imports, goimports also formats your code in the same style as gofmt.
22+
settings:
23+
misspell:
24+
locale: US
25+
revive:
26+
rules:
27+
- name: if-return
28+
disabled: true
29+
staticcheck:
30+
checks:
31+
- -ST1016 # Disable a rule for linting the generated converters in SDK.
32+
testifylint:
33+
disable:
34+
- require-error # Do not force using require instead of assert checks.
35+
- empty # Do not force using Empty assertion instead of Equal assertion with empty string.
36+
exclusions:
37+
presets:
38+
- legacy
39+
- std-error-handling
40+
# Scripts are not part of the production code and may be excluded.
41+
paths:
42+
- scripts$
43+
formatters:
44+
enable:
45+
- gofmt
46+
- gofumpt
6847
- goimports
69-
# Finds slice declarations with non-zero initial length
70-
- makezero
71-
# Fast, configurable, extensible, flexible, and beautiful linter for Go. Drop-in replacement of golint
72-
- revive
73-
# Checks usage of github.com/stretchr/testify.
74-
- testifylint

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# Changelog
22

3+
## [2.11.0](https://github.com/snowflakedb/terraform-provider-snowflake/compare/v2.10.1...v2.11.0) (2025-11-21)
4+
5+
6+
### 🎉 **What's new:**
7+
8+
* Add notebook datasource ([#4209](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4209)) ([5599cfe](https://github.com/snowflakedb/terraform-provider-snowflake/commit/5599cfe3e8afd3ff86ce5cff60dbdb94280c6984))
9+
* Add notebook resource ([#4195](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4195)) ([407dfa2](https://github.com/snowflakedb/terraform-provider-snowflake/commit/407dfa20bfefa1e7357287c80a128fc97cb48566))
10+
* Add support for semantic views in grant ownership ([#4210](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4210)) ([5d2b961](https://github.com/snowflakedb/terraform-provider-snowflake/commit/5d2b96166de9dc1a8260459b2f4d2f6aa1cbe796))
11+
* Add task seconds and hours scheduling ([#4207](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4207)) ([ec623ed](https://github.com/snowflakedb/terraform-provider-snowflake/commit/ec623eda842ff96855b8de266c6d9481eca39af2))
12+
* Enable semantic views ([#4221](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4221)) ([2398a93](https://github.com/snowflakedb/terraform-provider-snowflake/commit/2398a931d10cd283409b08f5b8597eba1cefbd47))
13+
14+
15+
### 🔧 **Misc**
16+
17+
* Add protected security integrations in sweepers ([#4193](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4193)) ([94260ce](https://github.com/snowflakedb/terraform-provider-snowflake/commit/94260ce558c31165aa6b971bc0b28cd123f3cd3e))
18+
* Add small provider adjustments ([#4208](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4208)) ([34b1d6d](https://github.com/snowflakedb/terraform-provider-snowflake/commit/34b1d6d6de504298085730e7418e8f5874548e55))
19+
* Adjust data source tests follow up 1 ([#4163](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4163)) ([8e1d20a](https://github.com/snowflakedb/terraform-provider-snowflake/commit/8e1d20a0e17e41307270813cf873f855ecff496b))
20+
* Adjust data source tests follow up 2 ([#4165](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4165)) ([23725df](https://github.com/snowflakedb/terraform-provider-snowflake/commit/23725dfca16b04226ae2ee4806e33da142f71d17))
21+
* Adjust data source tests follow up 3 ([#4166](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4166)) ([20ee0eb](https://github.com/snowflakedb/terraform-provider-snowflake/commit/20ee0eb4f74a48a4d7ca879c64ad7301f40179fe))
22+
* Adjust migration guide after grant ownership pr ([#4190](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4190)) ([c061a4e](https://github.com/snowflakedb/terraform-provider-snowflake/commit/c061a4ef58ed799c5bab4f107ccb39115fdaf930))
23+
* Adjust task documentation ([#4226](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4226)) ([85ddbb9](https://github.com/snowflakedb/terraform-provider-snowflake/commit/85ddbb9b6c91821765ff44672ddf2a4f1f1344bf))
24+
* Adjust task tests ([#4216](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4216)) ([1e80581](https://github.com/snowflakedb/terraform-provider-snowflake/commit/1e80581e198179ce883c31440eadcac070430d4c))
25+
* Adjust to 2025_07 BCR part 1 ([#4171](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4171)) ([df00c22](https://github.com/snowflakedb/terraform-provider-snowflake/commit/df00c227a000f0c140c7309a0a5f5251d9dfcfa2))
26+
* Adjust to 2025_07 BCR part 2 ([#4174](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4174)) ([ec84372](https://github.com/snowflakedb/terraform-provider-snowflake/commit/ec8437200e2a150ba5ec64e944aaee60b5fdc11c))
27+
* Bump the driver version to 1.18.0 ([#4220](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4220)) ([7f22a80](https://github.com/snowflakedb/terraform-provider-snowflake/commit/7f22a80d975482dc2272f92082a4676fc53f2914))
28+
* Change migration guide ([#4229](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4229)) ([8507769](https://github.com/snowflakedb/terraform-provider-snowflake/commit/8507769471943869704b2a95fbab3919bab2d925))
29+
* Fix data source tests ([#4203](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4203)) ([c59e35d](https://github.com/snowflakedb/terraform-provider-snowflake/commit/c59e35d8d2daf3246c1b48854bb830361328902c))
30+
* Fix failing tests in ci ([#4194](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4194)) ([945aa69](https://github.com/snowflakedb/terraform-provider-snowflake/commit/945aa69827e74edf8edc01e0b905ce56f1aff292))
31+
* Fix references to objects used in the SDK generator templates ([#4200](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4200)) ([2b13800](https://github.com/snowflakedb/terraform-provider-snowflake/commit/2b138009218f32d818d1b7505e1bb89bc90b5e4b))
32+
* Regenerate SDK without package problems ([#4183](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4183)) ([ae7cb43](https://github.com/snowflakedb/terraform-provider-snowflake/commit/ae7cb433064f83e59ee6285e4f3e118bbd34f594))
33+
* Remove database roles from bulk ownership grants ([#4185](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4185)) ([8229934](https://github.com/snowflakedb/terraform-provider-snowflake/commit/822993450a2150470f4d0ce6a15d0905bf12792b))
34+
* Remove legacy columns from managed accounts SDK ([#4175](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4175)) ([3832a34](https://github.com/snowflakedb/terraform-provider-snowflake/commit/3832a344b8ddd329c7929fcb9b94ec338220e429))
35+
* Upgrade golangci-lint to v2.6.1 ([#4182](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4182)) ([ce1f354](https://github.com/snowflakedb/terraform-provider-snowflake/commit/ce1f35441bd85338b8c011747314eaa5304adf60))
36+
37+
38+
### 🐛 **Bug fixes:**
39+
40+
* Do not panic in parsing identifiers with arguments ([#4191](https://github.com/snowflakedb/terraform-provider-snowflake/issues/4191)) ([f8a97f0](https://github.com/snowflakedb/terraform-provider-snowflake/commit/f8a97f06e7451496f863a6cc92f267d153d8a468))
41+
342
## [2.10.1](https://github.com/snowflakedb/terraform-provider-snowflake/compare/v2.10.0...v2.10.1) (2025-11-07)
443

544

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ We believe that code following the same conventions is easier to maintain and ex
106106

107107
### Introducing a new part of the SDK
108108

109-
To create new objects in our SDK we use quickly created generator that outputs the majority of the files needed. These files should be later edited and filled with the missing parts. We plan to improve the generator later on, but it should be enough for now. Please read more in the [generator readme](pkg/sdk/poc/README.md).
109+
To create new objects in our SDK we use quickly created generator that outputs the majority of the files needed. These files should be later edited and filled with the missing parts. We plan to improve the generator later on, but it should be enough for now. Please read more in the [generator readme](pkg/sdk/generator/README.md).
110110

111111
### Test the change
112112
Every introduced change should be tested. Depending on the type of the change it may require (any or mix of):

FAQ.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ The provider offers two main types of logging:
5656
- Terraform execution (check [Terraform Debugging Documentation](https://www.terraform.io/internals/debugging)) - you can set it through the `TF_LOG` environment variable, e.g.: `TF_LOG=DEBUG`; it will make output of the Terraform execution more verbose.
5757
- Snowflake communication (using the logs from the underlying [Go Snowflake driver](https://github.com/snowflakedb/gosnowflake)) - you can set it directly in the provider config ([`driver_tracing`](https://registry.terraform.io/providers/snowflakedb/snowflake/1.0.3/docs#driver_tracing-3) attribute), by `SNOWFLAKE_DRIVER_TRACING` environmental variable (e.g. `SNOWFLAKE_DRIVER_TRACING=info`), or by `drivertracing` field in the TOML file. To see the communication with Snowflake (including the SQL commands run) we recommend setting it to `info`.
5858

59+
**Note:** Since v2.11.0 provider version, queries are not logged by default. If you need query-level debugging, ensure you configure appropriate logging settings:
60+
- `log_query_text` - when set to `true`, query text will be logged
61+
- `log_query_parameters` - when set to `true`, query parameters will be logged
62+
63+
These options can be set in the provider configuration, TOML configuration file, or via environment variables. Read [the documentation](https://registry.terraform.io/providers/snowflakedb/snowflake/latest/docs#schema) for more details.
64+
65+
Note that you still need to set the `INFO` level in `driver_tracing` field to see the query logs.
66+
5967
As driver logs may seem cluttered, to locate the SQL commands run, search for:
6068
- (preferred) `--terraform_provider_usage_tracking`
6169
- `msg="Query:`
@@ -74,6 +82,6 @@ Please refer to [this document](https://github.com/snowflakedb/terraform-provide
7482

7583
### Is this provider compatible with OpenTofu?
7684
OpenTofu is not currently supported. While it's mostly compatible with Terraform,
77-
OpenTofu's [reactive implementation of new Terraform features based on community demand](https://opentofu.org/faq/#opentofu-compatibility) may decrease compatibility over time.
85+
OpenTofu's [reactive implementation of new Terraform features based on community demand](https://opentofu.org/faq/#opentofu-compatibility) may decrease compatibility over time.
7886
We plan to research OpenTofu support in the future, but there's no timeline yet (once planned, it will appear in the [roadmap](https://github.com/snowflakedb/terraform-provider-snowflake/blob/main/ROADMAP.md)).
7987
For now, you must research and assess the risk of provider incompatibility.

0 commit comments

Comments
 (0)