Skip to content

Commit deb6a10

Browse files
committed
fix(exporter): rolling gen: dont use final in join
1 parent b7dd2ff commit deb6a10

File tree

1 file changed

+1
-1
lines changed
  • backend/pkg/exporter/db

1 file changed

+1
-1
lines changed

backend/pkg/exporter/db/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ func TransferRollingSourceToRolling(rolling Rollings, source RollingSourcesSuffi
13111311
sum(efficiency_dividend) AS efficiency_dividend,
13121312
sum(efficiency_divisor) AS efficiency_divisor
13131313
`
1314-
join := fmt.Sprintf("left join (select * from _final_validator_dashboard_roi_%[1]s final where %[2]s >= $1 and %[2]s <= $2) roi on roi.validator_index = a.validator_index", source, column)
1314+
join := fmt.Sprintf("left join (select validator_index, sum(roi_dividend) as roi_dividend, sum(roi_divisor) as roi_divisor from _final_validator_dashboard_roi_%[1]s where %[2]s >= $1 and %[2]s <= $2) roi on roi.validator_index = a.validator_index group by validator_index", source, column)
13151315
extraSelect := ", roi.roi_dividend::Int128 AS roi_dividend, roi.roi_divisor::Int128 AS roi_divisor"
13161316

13171317
if source == RollingSourceEpochly {

0 commit comments

Comments
 (0)