                                         {:rnum 1
                                          :column-name "c1"
                                          :table-name table-name})))))
-      (apply {:type :undo})
+      (apply-transformation {:type :undo})
       (let [table-name (:table-name
                         (latest-dataset-version-by-dataset-id test-conn
                                                               {:dataset-id dataset-id}))]


(deftest ^:functional date-parsing-test
  (let [dataset-id (import-file "dates.csv" {:has-column-headers? true})
        apply (partial tf/apply test-conn dataset-id)]
    (let [[tag {:strs [datasetId]}] (do (apply (date-transformation "c1" "YYYY"))
                                        (apply (date-transformation "c2" "DD/MM/YYYY"))
                                        (apply (date-transformation "c3" "YYYY-MM-DD")))]
      (is (= ::lib/ok tag))
      (let [table-name (:table-name (latest-dataset-version-by-dataset-id test-conn
                                                                          {:dataset-id datasetId}))


(deftest ^:functional derived-column-test
  (let [dataset-id (import-file "derived-column.csv" {:has-column-headers? true})
        apply-transformation (partial tf/apply test-conn dataset-id)]
    (do (apply-transformation (change-datatype-transformation "c2"))
        (apply-transformation (change-datatype-transformation "c3")))

    (testing "Import and initial transforms"
      (is (= (latest-data dataset-id)
