Skip to content

Commit

Permalink
Merge pull request #58 from Snowflake-Labs/fix-frh-snowalert-tf-dirty…
Browse files Browse the repository at this point in the history
…-plan

Make FRH Snowalert TF plan clean
  • Loading branch information
sfc-gh-bkou authored Feb 28, 2023
2 parents 38d0634 + b741780 commit 037b4f3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions ef_jira.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ resource "snowflake_external_function" "snowalert_jira_api" {
# Function arguments
arg {
name = "METHOD"
type = "STRING"
type = "VARCHAR"
}

arg {
name = "PATH"
type = "STRING"
type = "VARCHAR"
}

arg {
name = "BODY"
type = "STRING"
type = "VARCHAR"
}

arg {
name = "QUERYSTRING"
type = "STRING"
type = "VARCHAR"
}

# Function headers
Expand Down
12 changes: 6 additions & 6 deletions functions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ resource "snowflake_function" "time_slices_before_t_without_time" {
type = "NUMBER"
}

return_type = "TABLE ( slice_start TIMESTAMP, slice_end TIMESTAMP )"
return_type = "TABLE (slice_start TIMESTAMP_NTZ, slice_end TIMESTAMP_NTZ)"
statement = templatefile(
"${path.module}/functions_sql/time_slices_before_t_without_time.sql", {
data_time_slices_without_tz_function = local.data_time_slices_without_tz_function
Expand Down Expand Up @@ -275,15 +275,15 @@ resource "snowflake_function" "json_beautify_with_indent" {

arguments {
name = "STR"
type = "STRING"
type = "VARCHAR"
}

arguments {
name = "INDENT"
type = "DOUBLE"
type = "FLOAT"
}

return_type = "STRING"
return_type = "VARCHAR"
language = "javascript"
statement = <<javascript
try {
Expand All @@ -307,10 +307,10 @@ resource "snowflake_function" "json_beautify_without_indent" {

arguments {
name = "STR"
type = "STRING"
type = "VARCHAR"
}

return_type = "STRING"
return_type = "VARCHAR"
language = "javascript"
statement = <<javascript
${join(".", [
Expand Down
10 changes: 5 additions & 5 deletions tables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ resource "snowflake_table" "violations" {
type = "VARIANT"
}

column {
name = "ID"
type = "VARCHAR(16777216)"
}

column {
name = "ALERT_TIME"
type = "TIMESTAMP_LTZ(9)"
Expand All @@ -186,11 +191,6 @@ resource "snowflake_table" "violations" {
type = "VARCHAR(16777216)"
}

column {
name = "ID"
type = "VARCHAR(16777216)"
}

depends_on = [
module.snowalert_grants
]
Expand Down

0 comments on commit 037b4f3

Please sign in to comment.