                                                                              (:columnName %)))
                                                             (walk/keywordize-keys columns)))
         (jdbc/insert-multi! conn table-name data)))
-    #_(map #(dissoc % :original-table-name) data-groups-to-be-created)
     {:success? true
      :data-groups-to-be-created data-groups-to-be-created
      :execution-log [(format "Merged columns from %s into %s"
                              "(:table-name source-dataset)"
                              table-name)]
-     :columns (vec columns)}
-    ))
+     :columns (vec columns)}))
 
 (defn apply-merge-operation
   [conn table-name columns op-spec]

                                                                        (+ (engine/next-column-index target-dataset-columns) i)))
                                                   reset-column-values))))
                              (group-by #(get % "groupId")))
        instance-id-column (->> (db.data-group/get-data-group-by-column-name ;; TODO: define column as a var? (def instance-id-col {})
                                 conn
                                 {:column-name "instance_id"
                                  :dataset-version-id (:id dataset-version) })


(defn get-data-groups-to-be-created [conn source target-dataset-columns]
  (let [dataset-id (get source "datasetId")
        dataset-version (db.dataset-version/latest-dataset-version-2-by-dataset-id conn {:dataset-id dataset-id})
        data-groups     (db.data-group/list-data-groups-by-dataset-version-id
                         conn
