Skip to content
Snippets Groups Projects
Commit bd830cd5 authored by Simon Belak's avatar Simon Belak
Browse files

Be more strict what can be aggregated on

parent a4b24d70
No related branches found
No related tags found
No related merge requests found
......@@ -108,12 +108,12 @@
:else [:field-id id])]
(cond
(isa? base_type :type/DateTime)
[:datetime-field reference (or aggregation (optimal-datetime-resolution field))]
[:datetime-field reference (or aggregation
(optimal-datetime-resolution field))]
(and aggregation
; We don't handle binning on non-analyzed fields gracefully
(or (not (isa? base_type :type/Number))
(-> fingerprint :type :type/Number :min)))
(-> fingerprint :type :type/Number :min))
[:binning-strategy reference aggregation]
:else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment