From b34720c64e255e9368c193c4faff9d6774efcf33 Mon Sep 17 00:00:00 2001 From: Chris Truter Date: Sat, 24 Aug 2024 11:47:49 +0200 Subject: [PATCH] stuff --- src/macaw/walk.clj | 1 + test/macaw/scope_experiments_test.clj | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/macaw/walk.clj b/src/macaw/walk.clj index 8bb1e95..2d4b96a 100644 --- a/src/macaw/walk.clj +++ b/src/macaw/walk.clj @@ -10,6 +10,7 @@ {:alias AstWalker$CallbackKey/ALIAS :column AstWalker$CallbackKey/COLUMN :column-qualifier AstWalker$CallbackKey/COLUMN_QUALIFIER + :every-node AstWalker$CallbackKey/EVERY_NODE :mutation AstWalker$CallbackKey/MUTATION_COMMAND :pseudo-table AstWalker$CallbackKey/PSEUDO_TABLES :table AstWalker$CallbackKey/TABLE diff --git a/test/macaw/scope_experiments_test.clj b/test/macaw/scope_experiments_test.clj index 1543234..5acf206 100644 --- a/test/macaw/scope_experiments_test.clj +++ b/test/macaw/scope_experiments_test.clj @@ -3,7 +3,7 @@ [clojure.test :refer :all] [macaw.scope-experiments :as mse])) -(deftest semantic-map-test +(deftest ^:parallel semantic-map-test (is (= (mse/semantic-map "select x from t, u, v left join w on w.id = v.id where t.id = u.id and u.id = v.id limit 3") {:scopes {1 {:path ["SELECT"], :children [[:column nil "x"]]}, 2 {:path ["SELECT" "FROM"], :children [[:table "t"]]}, @@ -53,7 +53,7 @@ [1 [:column nil "d"]] [2 [:table "t"]]]}))) -(deftest fields-to-search-test +(deftest ^:parallel fields-to-search-test ;; like source-columns, but understands scope (is (= (mse/fields-to-search (mse/fields->tables-in-scope "select x from t, u, v left join w on w.a = v.a where t.b = u.b and u.c = v.c limit 3"))