You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/plausible/stats
Vini Brasil 5012e0c0ec
Set with_imported=false in realtime mode (#3053)
This commit fixes a bug where timeseries queries - such as the main
graph - would fail with imported data in realtime mode. Realtime mode
`date` field is not actually a date, but minutes from now. This would
cause the imported tables join to fail with this error:

```
(Ch.Error Code: 53. DB::Exception: Can't infer common type for joined
columns: date: Int64 at left, s1.date: Date at right. There is no
supertype for types Int64, Date because some of them are
Date/Date32/DateTime/DateTime64 and some of them are not.
(TYPE_MISMATCH)
```

This commit removes imported data from realtime queries, as it doesn't
make sense to include it. Imported data does not have time precision,
and would only appear in the first day the data was imported anyways.
3 years ago
..
aggregate.ex Support `with_imported=true` in Stats API aggregate (#2919) 4 years ago
base.ex Fix queries with wildcard goals (#3015) 3 years ago
breakdown.ex Add revenue metrics in StatsController instead of Stats.Breakdown (#3028) 3 years ago
clickhouse.ex Clean up after V2 migration (#2868) 4 years ago
compare.ex [Continued] Google Analytics import (#1753) 5 years ago
comparisons.ex Support `with_imported=true` in Stats API aggregate (#2919) 4 years ago
current_visitors.ex Clean up after V2 migration (#2868) 4 years ago
custom_props.ex Fix a bug with query bindings (#2932) 4 years ago
filter_parser.ex Harden API input validation (#2869) 4 years ago
filter_suggestions.ex Filter out garbage props by `site.allowed_event_props` (#2907) 4 years ago
filters.ex Harden API input validation (#2869) 4 years ago
fragments.ex Add API support for intervals (#2417) 4 years ago
funnel.ex Implement backend core for funnels (#3023) 3 years ago
imported.ex Switch to new clickhouse adapter (ch/chto) (#2733) 4 years ago
interval.ex Allow setting sample_threshold in dashboard API queries (#2958) 4 years ago
props.ex Prop filter modal (#2841) 4 years ago
query.ex Set with_imported=false in realtime mode (#3053) 3 years ago
timeseries.ex Treat page filter as entry page filter only for bounce rate (#2874) 4 years ago
util.ex Support `with_imported=true` in Stats API aggregate (#2919) 4 years ago