fix(chdb): rename geodns references to dns
All checks were successful
continuous-integration/drone/push Build is passing
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:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user