Skip to content

Commit

Permalink
Don't use tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Jan 2, 2025
1 parent df6b3ee commit daff05b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions clients/redshift/dialect/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ func (rd RedshiftDialect) BuildIsNotToastValueExpression(tableAlias constants.Ta
// If the value is greater than 500 characters, it's likely not going to be toasted, so we can skip the check.
return fmt.Sprintf(`
COALESCE(
CASE
WHEN JSON_SIZE(%s) < 500 THEN JSON_SERIALIZE(%s) NOT LIKE '%s'
ELSE
TRUE
END,
TRUE
CASE
WHEN JSON_SIZE(%s) < 500 THEN JSON_SERIALIZE(%s) NOT LIKE '%s'
ELSE
TRUE
END,
TRUE
)`, colName, colName, toastedValue)
default:
return fmt.Sprintf(`COALESCE(%s NOT LIKE '%s', TRUE)`, colName, toastedValue)
Expand Down

0 comments on commit daff05b

Please sign in to comment.