Skip to content

Commit

Permalink
sync to 1.2: in-memory reader filter workaround for special tables. (#…
Browse files Browse the repository at this point in the history
…17137)

see the issue for details.

Approved by: @XuPeng-SH, @sukki37
  • Loading branch information
gouhongshen authored Jun 25, 2024
1 parent 77db6b8 commit e99f2a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/vm/engine/disttae/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"bytes"
"context"
"fmt"
"regexp"
"strings"

"github.com/matrixorigin/matrixone/pkg/catalog"
Expand Down Expand Up @@ -674,8 +675,11 @@ func ConstructPKFilters(tableDef *plan.TableDef, dbName string,
return
}

// TODO(ghs) workaround for special tables, remove later
var specialPattern *regexp.Regexp = regexp.MustCompile(`mo_tables|mo_database|_mo_columns`)

func constructBasePKFilter(expr *plan.Expr, tblDef *plan.TableDef, proc *process.Process) (filter BasePKFilter) {
if expr == nil {
if expr == nil || specialPattern.MatchString(tblDef.Name) {
return
}

Expand Down

0 comments on commit e99f2a0

Please sign in to comment.