                                                                                            "created" (Instant/ofEpochMilli (System/currentTimeMillis))
                                                                                            "changedColumns" (diff-columns previous-columns
                                                                                                                           columns))))})
-    (when data-groups-to-be-created
+    (when (seq data-groups-to-be-created)
       (let [max-group-order     (apply max (conj (map :group-order data-groups) 1000))
             adapted-data-groups (map-indexed (fn [i item]
                                                (let [idx        (inc (+ i max-group-order))

                {:transaction? false})
    (loop [transformations (butlast (:transformations current-dataset-version))
           columns initial-columns
           full-execution-log []
           tx-index 0]
      (if (empty? transformations)
        (let [new-dataset-version-id (str (util/squuid))]

                              (conj container column))) [] (:columns res)))]
    (when-not success?
      (log/errorf "Failed to transform: %s, columns: %s, execution-log: %s, data: %s" message columns execution-log error-data)
      (throw (ex-info (or message "") {:transformation-result (select-keys res [:success? :message :columns :execution-log])})))
    {:data-groups-to-be-created (or data-groups-to-be-created [])
     :columns columns
     :previous-columns previous-columns
     :data-group data-group}))
