Skip to content

Commit

Permalink
fixing the fumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Feb 29, 2024
1 parent 90a9b19 commit 0b44827
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion flow/connectors/bigquery/qrep.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func (c *BigQueryConnector) SetupQRepMetadataTables(ctx context.Context, config
}

func (c *BigQueryConnector) IsQRepPartitionSynced(ctx context.Context,
req *protos.IsQRepPartitionSyncedInput) (bool, error) {
req *protos.IsQRepPartitionSyncedInput,
) (bool, error) {
return c.pgMetadata.IsQrepPartitionSynced(ctx, req.FlowJobName, req.PartitionId)
}
3 changes: 2 additions & 1 deletion flow/connectors/clickhouse/qrep.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ func (c *ClickhouseConnector) getTableSchema(tableName string) ([]*sql.ColumnTyp
}

func (c *ClickhouseConnector) IsQRepPartitionSynced(ctx context.Context,
req *protos.IsQRepPartitionSyncedInput) (bool, error) {
req *protos.IsQRepPartitionSyncedInput,
) (bool, error) {
//nolint:gosec
queryString := fmt.Sprintf(`SELECT COUNT(*) FROM %s WHERE partitionID = '%s'`, qRepMetadataTableName, req.PartitionId)

Expand Down
3 changes: 2 additions & 1 deletion flow/connectors/snowflake/qrep.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ func (c *SnowflakeConnector) getStageNameForJob(job string) string {
}

func (c *SnowflakeConnector) IsQRepPartitionSynced(ctx context.Context,
req *protos.IsQRepPartitionSyncedInput) (bool, error) {
req *protos.IsQRepPartitionSyncedInput,
) (bool, error) {
return c.pgMetadata.IsQrepPartitionSynced(ctx, req.FlowJobName, req.PartitionId)
}

0 comments on commit 0b44827

Please sign in to comment.