Skip to content

Commit

Permalink
Merge pull request #1994 from mihaitodor/fix-snowflake-put-output-lin…
Browse files Browse the repository at this point in the history
…ting

Fix snowflake_put output linting
  • Loading branch information
Jeffail authored Jul 24, 2023
2 parents 29ee653 + 89f545e commit 6f574a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/impl/snowflake/output_snowflake_put.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ and it must be set to the `+"`<cloud>`"+` part of the Account Identifier
Field(service.NewBatchPolicyField("batching")).
Field(service.NewIntField("max_in_flight").Description("The maximum number of parallel message batches to have in flight at any given time.").Default(1)).
LintRule(`root = match {
this.exists("password") && this.exists("private_key_file") => [ "both `+"`password`"+` and `+"`private_key_file`"+` can't be set simultaneously" ],
this.exists("snowpipe") && (!this.exists("private_key_file") || this.private_key_file == "") => [ "`+"`private_key_file`"+` is required when setting `+"`snowpipe`"+`" ],
this.exists("password") && this.password != "" && this.exists("private_key_file") && this.private_key_file != "" => [ "both `+"`password`"+` and `+"`private_key_file`"+` can't be set simultaneously" ],
this.exists("snowpipe") && this.snowpipe != "" && (!this.exists("private_key_file") || this.private_key_file == "") => [ "`+"`private_key_file`"+` is required when setting `+"`snowpipe`"+`" ],
}`).
Example("Kafka / realtime brokers", "Upload message batches from realtime brokers such as Kafka persisting the batch partition and offsets in the stage path and filename similarly to the [Kafka Connector scheme](https://docs.snowflake.com/en/user-guide/kafka-connector-ts.html#step-1-view-the-copy-history-for-the-table) and call Snowpipe to load them into a table. When batching is configured at the input level, it is done per-partition.", `
input:
Expand Down

0 comments on commit 6f574a6

Please sign in to comment.