Skip to content
Snippets Groups Projects
Unverified Commit d970f159 authored by Simon Belak's avatar Simon Belak Committed by GitHub
Browse files

Merge pull request #9440 from metabase/floats-should-never-be-categories

Floats should never be categories
parents b9111a92 427c3813
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,9 @@
(defn- cannot-be-category-or-list?
[{:keys [base_type special_type]}]
(or (isa? base_type :type/DateTime)
(isa? base_type :type/Collection)
(or (isa? base_type :type/DateTime)
(isa? base_type :type/Collection)
(isa? base_type :type/Float)
;; Don't let IDs become list Fields (they already can't become categories, because they already have a special
;; type). It just doesn't make sense to cache a sequence of numbers since they aren't inherently meaningful
(isa? special_type :type/PK)
......
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