Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infoschema: fix select * from inspection_summary would return null. #16099

Merged
merged 13 commits into from
Apr 10, 2020
Prev Previous commit
Next Next commit
address comment
  • Loading branch information
reafans committed Apr 8, 2020
commit ca038125c05463c494acba3140f3b6554a35824a
6 changes: 2 additions & 4 deletions executor/inspection_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,8 @@ func (e *inspectionSummaryRetriever) retrieve(ctx context.Context, sctx sessionc
condition := e.timeRange.Condition()
var finalRows [][]types.Datum
for rule, tables := range inspectionSummaryRules {
if len(rules.set) != 0 {
if !rules.set.Exist(rule) {
continue
}
if len(rules.set) != 0 && !rules.set.Exist(rule) {
continue
}
for _, name := range tables {
if !names.enable(name) {
Expand Down