Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix(collector): sheet collector sql (#8854)

h3n4ld4f02aedd003
diff --git a/backend/store/stats.go b/backend/store/stats.go
index a635cc14fb..9939e6d768 100644
--- a/backend/store/stats.go
+++ b/backend/store/stats.go
@@ -352,9 +352,9 @@ func (s *Store) CountSheetGroupByRowstatusVisibilitySourceAndType(ctx context.Co
defer tx.Rollback()
rows, err := tx.QueryContext(ctx, `
- SELECT row_status, visibility, source, type, COUNT(*) AS count
+ SELECT row_status, visibility, source, COUNT(*) AS count
FROM sheet
- GROUP BY row_status, visibility, source, type`)
+ GROUP BY row_status, visibility, source`)
if err != nil {
return nil, err
}