-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not read query for dynamic table (#2329)
- Loading branch information
1 parent
76989a0
commit ea61380
Showing
4 changed files
with
100 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
pkg/resources/testdata/TestAcc_DynamicTable_issue2329/1/test.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
resource "snowflake_table" "t" { | ||
database = var.database | ||
schema = var.schema | ||
name = var.table_name | ||
change_tracking = true | ||
column { | ||
name = "id" | ||
type = "NUMBER(38,0)" | ||
} | ||
column { | ||
name = "data" | ||
type = "VARCHAR(16)" | ||
} | ||
} | ||
|
||
resource "snowflake_dynamic_table" "dt" { | ||
depends_on = [snowflake_table.t] | ||
name = var.name | ||
database = var.database | ||
schema = var.schema | ||
target_lag { | ||
maximum_duration = "2 minutes" | ||
} | ||
warehouse = var.warehouse | ||
query = var.query | ||
comment = var.comment | ||
} |
27 changes: 27 additions & 0 deletions
27
pkg/resources/testdata/TestAcc_DynamicTable_issue2329/1/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
variable "name" { | ||
type = string | ||
} | ||
|
||
variable "database" { | ||
type = string | ||
} | ||
|
||
variable "schema" { | ||
type = string | ||
} | ||
|
||
variable "warehouse" { | ||
type = string | ||
} | ||
|
||
variable "query" { | ||
type = string | ||
} | ||
|
||
variable "comment" { | ||
type = string | ||
} | ||
|
||
variable "table_name" { | ||
type = string | ||
} |