Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class MetricsRepository {
};
return this.client.queryPromise<{ value: number | null }>(
`
SELECT round(sum(total) / {multiplier:UInt32}, 4) AS value FROM (
SELECT round(sum(total) / {multiplier:Float64}, 4) AS value FROM (
SELECT
toDateTime({startDate:UInt32}) AS startDate,
toDateTime({endDate:UInt32}) AS endDate,
Expand Down Expand Up @@ -119,7 +119,7 @@ export class MetricsRepository {
WITH
toDateTime({startDate:UInt32}) AS startDate,
toDateTime({endDate:UInt32}) AS endDate
SELECT hash, name, isPersisted, round(sum(total) / {multiplier:UInt32}, 4) AS value FROM (
SELECT hash, name, isPersisted, round(sum(total) / {multiplier:Float64}, 4) AS value FROM (
SELECT
Timestamp as timestamp,
OperationHash as hash,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class SubgraphMetricsRepository {
};
return this.client.queryPromise<{ value: number | null }>(
`
SELECT round(sum(total) / {multiplier:UInt32}, 4) AS value FROM (
SELECT round(sum(total) / {multiplier:Float64}, 4) AS value FROM (
SELECT
toDateTime({startDate:UInt32}) AS startDate,
toDateTime({endDate:UInt32}) AS endDate,
Expand Down Expand Up @@ -131,7 +131,7 @@ export class SubgraphMetricsRepository {
WITH
toDateTime({startDate:UInt32}) AS startDate,
toDateTime({endDate:UInt32}) AS endDate
SELECT hash, name, isPersisted, round(sum(total) / {multiplier:UInt32}, 4) AS value FROM (
SELECT hash, name, isPersisted, round(sum(total) / {multiplier:Float64}, 4) AS value FROM (
SELECT
Timestamp as timestamp,
OperationHash as hash,
Expand Down
Loading