Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
crisptrutski committed Oct 21, 2024
1 parent f758fa1 commit b34720c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/macaw/walk.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/macaw/scope_experiments_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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"]]},
Expand Down Expand Up @@ -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"))
Expand Down

0 comments on commit b34720c

Please sign in to comment.