Skip to content

Commit

Permalink
Merge pull request #421 from bruin-data/snowflake-fix
Browse files Browse the repository at this point in the history
snowflake fix table doesn't fix error
  • Loading branch information
terzioglub authored Jan 27, 2025
2 parents 023b98e + 80db4a8 commit ef52bdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/snowflake/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (db *DB) RecreateTableOnMaterializationTypeMismatch(ctx context.Context, as
}

if len(result) == 0 {
return errors.New(fmt.Sprintf("table or view %s.%s does not exist", schemaName, tableName))
return nil
}

var materializationType string
Expand Down
1 change: 0 additions & 1 deletion pkg/snowflake/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ func TestDB_RecreateTableOnMaterializationTypeMismatch(t *testing.T) {
Type: pipeline.MaterializationTypeTable,
},
},
expectedError: "table or view TEST_SCHEMA.TEST_TABLE does not exist",
},
{
name: "error during table type retrieval",
Expand Down

0 comments on commit ef52bdb

Please sign in to comment.