OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
use float instead of int
Carl-Gerhard Lindesvärdc5b3e5720571
diff --git a/packages/db/src/services/chart.service.ts b/packages/db/src/services/chart.service.tsindex a456a2540..77324f4c7 100644--- a/packages/db/src/services/chart.service.ts+++ b/packages/db/src/services/chart.service.ts@@ -114,11 +114,11 @@ export function getChartSql({}if (event.segment === 'property_sum' && event.property) {- sb.select.count = `sum(toInt64OrNull(${getPropertyKey(event.property)})) as count`;+ sb.select.count = `sum(toFloat64OrNull(${getPropertyKey(event.property)})) as count`;}if (event.segment === 'property_average' && event.property) {- sb.select.count = `avg(toInt64OrNull(${getPropertyKey(event.property)})) as count`;+ sb.select.count = `avg(toFloat64OrNull(${getPropertyKey(event.property)})) as count`;}if (event.segment === 'one_event_per_user') {