Skip to content

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

chore: remove Hive from getAdvisorTypeByRule() and rename advisor's filename (#11816)

Azusaind9a5801123de
diff --git a/backend/plugin/advisor/mysql/advisor_limit_table_size.go b/backend/plugin/advisor/mysql/advisor_table_limit_size.go
similarity index 100%
rename from backend/plugin/advisor/mysql/advisor_limit_table_size.go
rename to backend/plugin/advisor/mysql/advisor_table_limit_size.go
diff --git a/backend/plugin/advisor/sql_review.go b/backend/plugin/advisor/sql_review.go
index 6b7c76c2f3..16bd863154 100644
--- a/backend/plugin/advisor/sql_review.go
+++ b/backend/plugin/advisor/sql_review.go
@@ -1419,8 +1419,7 @@ func getAdvisorTypeByRule(ruleType SQLReviewRuleType, engine storepb.Engine) (Ty
return MSSQLTableDisallowDML, nil
}
case SchemaRuleTableLimitSize:
- switch engine {
- case storepb.Engine_MYSQL, storepb.Engine_HIVE:
+ if engine == storepb.Engine_MYSQL {
return MySQLTableLimitSize, nil
}
case SchemaRuleMySQLEngine: