       (let [[tag query-result] (query {:aggregation "count"})]
         (is (= query-result
                {:columns [{:type "number" :title "Total"}]
-                :rows [[4]]
-                :metadata {:categoryColumnTitle nil}})))
-
-
-      (update-file *tenant-conn* *error-tracker* dataset-id data-source-id
-                   {:kind "clj"
-                    :data {:columns columns
-                           :rows (conj rows
-                                       [{:value "a2"} {:value "b1"} {:value 12}]
-                                       [{:value "a2"} {:value "b1"} {:value 10}]
-                                       [{:value "a2"} {:value "b2"} {:value 11}]
-                                       [{:value "a2"} {:value "b2"} {:value 10}])}})
-
-      (let [[tag query-result] (query {:aggregation "count"})]
-        (is (= query-result
-               {:columns [{:type "number" :title "Total"}]
-                :rows [[8]]
+                :rows [[9]]
                 :metadata {:categoryColumnTitle nil}}))))
 
-    
-    
     (testing "Empty query with filter"
       (let [[tag query-result] (query {:aggregation "count",
                                        :filters

                          {:title "a1" :type "number"}
                          {:title "a2" :type "number"}]
                :rows [["b1" 10.5 10.0]
                       ["b2" 9.5 10.5]]
                :metadata {:categoryColumnTitle "A"}}))))))

(deftest pie-tests

               {:columns [{:title "B" :type "text"}
                          {:title "Total" :type "number"}]
                :rows [["b1" 4]
                       ["b2" 5]]
                :metadata {:categoryColumnTitle nil}}))))

    (testing "Row & Category Column with count aggregation"
