Skip to content

Commit 52783b6

Browse files
xiaochaoren1SongZhen0704
authored andcommitted
fix: querier chost_ip filter error
1 parent 9f9fa46 commit 52783b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/querier/engine/clickhouse/filter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ func (t *WhereTag) Trans(expr sqlparser.Expr, w *Where, e *CHEngine) (view.Node,
694694
}
695695
}
696696
} else {
697-
if t.Tag == strings.TrimSuffix(table, "_map") {
697+
if t.Tag == strings.TrimSuffix(table, "_map") || checkTag == common.CHOST_HOSTNAME || checkTag == common.CHOST_IP {
698698
tagItem, ok := tag.GetTag("display_name", db, table, "default")
699699
if ok {
700700
switch strings.ToLower(op) {

0 commit comments

Comments
 (0)