Skip to content

Commit

Permalink
NUMBER to NUMBER(38, 9)
Browse files Browse the repository at this point in the history
  • Loading branch information
saisrirampur committed Dec 22, 2023
1 parent fc176f9 commit 0e8db19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/connectors/snowflake/snowflake.go
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ func (c *SnowflakeConnector) generateAndExecuteMergeStatement(
// "Microseconds*1000) "+
// "AS %s,", toVariantColumnName, columnName, columnName))
default:
if sfType == "NUMBER" {
if sfType == "NUMBER(38, 9)" {
flattenedCastsSQLArray = append(flattenedCastsSQLArray, fmt.Sprintf("TRY_CAST((%s:\"%s\")::text AS %s) AS %s,",
toVariantColumnName, columnName, sfType, targetColumnName))
} else {
Expand Down

0 comments on commit 0e8db19

Please sign in to comment.