Skip to content

Commit

Permalink
More.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 26, 2024
1 parent c7e34ae commit e4527f0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions clients/snowflake/snowflake.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/artie-labs/transfer/lib/kafkalib"
"github.com/artie-labs/transfer/lib/optimization"
"github.com/artie-labs/transfer/lib/sql"
"github.com/artie-labs/transfer/lib/typing"
)

type Store struct {
Expand Down Expand Up @@ -47,12 +46,7 @@ func (s *Store) Sweep() error {
return err
}

snowflakeDialect, err := typing.AssertType[dialect.SnowflakeDialect](s.Dialect())
if err != nil {
return err
}

return shared.Sweep(s, tcs, snowflakeDialect.BuildSweepQuery)
return shared.Sweep(s, tcs, s.dialect().BuildSweepQuery)
}

func (s *Store) Dialect() sql.Dialect {
Expand Down

0 comments on commit e4527f0

Please sign in to comment.