Private
Public Access
1
0

fix(chdb): rename geodns references to dns
All checks were successful
continuous-integration/drone/push Build is passing

ClickHouse DNS tables moved from geodns/geodns3 to
a single dns database.
This commit is contained in:
2026-03-07 16:07:20 -08:00
parent 1b1413a632
commit e4f6d8cafb

View File

@@ -1,6 +1,6 @@
package chdb package chdb
// queries to the GeoDNS database // queries to the DNS database
import ( import (
"context" "context"
@@ -208,7 +208,7 @@ func (d *ClickHouse) DNSQueries(ctx context.Context) ([]DNSQueryCounts, error) {
sum(q)/300 as avg, max(q) as max sum(q)/300 as avg, max(q) as max
from ( from (
select window as t, sumSimpleState(queries) as q select window as t, sumSimpleState(queries) as q
from geodns.by_origin_1s from dns.by_origin_1s
where where
window > FROM_UNIXTIME(?) window > FROM_UNIXTIME(?)
and Origin IN ('pool.ntp.org', 'g.ntpns.org') and Origin IN ('pool.ntp.org', 'g.ntpns.org')