Skip to content

Commit

Permalink
snowflake: make the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
rockwotj committed Nov 5, 2024
1 parent 2582de9 commit f97e467
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions internal/impl/snowflake/streaming/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ type (
Message string `json:"message"`
Blobs []blobRegisterStatus `json:"blobs"`
}
// BindingValue is a value available as a binding variable in a SQL statement.
BindingValue struct {
// The binding data type, generally TEXT is what you want
// see: https://docs.snowflake.com/en/developer-guide/sql-api/submitting-requests#using-bind-variables-in-a-statement
Expand Down
6 changes: 3 additions & 3 deletions internal/impl/snowflake/streaming/schema_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (e NonNullColumnError) ColumnName() string {
return e.columnName
}

// ColumnName returns nil
// Value returns nil
func (e NonNullColumnError) Value() any {
return nil
}
Expand Down Expand Up @@ -64,13 +64,13 @@ func (e MissingColumnError) ColumnName() string {
return quoteColumnName(e.columnName)
}

// The raw name of the new column - DO NOT USE IN SQL!
// RawName is the unquoted name of the new column - DO NOT USE IN SQL!
// This is the more intutitve name for users in the mapping function
func (e MissingColumnError) RawName() string {
return e.columnName
}

// ColumnName returns the value that was associated with the missing column
// Value returns the value that was associated with the missing column
func (e MissingColumnError) Value() any {
return e.val
}
Expand Down

0 comments on commit f97e467

Please sign in to comment.