From cd8de13c66425ad10a6e158f6f5e9e2f7af19a0f Mon Sep 17 00:00:00 2001 From: Chris Truter Date: Mon, 4 Nov 2024 14:27:24 +0200 Subject: [PATCH] Don't override default Malli registry (#114) --- src/macaw/util/malli/registry.clj | 2 -- test/resources/acceptance/queries.sql | 3 +++ test/resources/acceptance/simple__select_count.analysis.edn | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 test/resources/acceptance/simple__select_count.analysis.edn diff --git a/src/macaw/util/malli/registry.clj b/src/macaw/util/malli/registry.clj index bc04f17..a1643f1 100644 --- a/src/macaw/util/malli/registry.clj +++ b/src/macaw/util/malli/registry.clj @@ -59,8 +59,6 @@ (defonce ^:private registry (malli.registry/mutable-registry registry*)) -(malli.registry/set-default-registry! registry) - (defn register! "Register a spec with our Malli spec registry." [schema definition] diff --git a/test/resources/acceptance/queries.sql b/test/resources/acceptance/queries.sql index ffa6482..3fc8b5f 100644 --- a/test/resources/acceptance/queries.sql +++ b/test/resources/acceptance/queries.sql @@ -287,6 +287,9 @@ FROM user; -- FIXTURE: simple/select-star SELECT * FROM t; +-- FIXTURE: simple/select-count +SELECT COUNT(*) FROM t; + -- FIXTURE: snowflakelet SELECT column_2564, diff --git a/test/resources/acceptance/simple__select_count.analysis.edn b/test/resources/acceptance/simple__select_count.analysis.edn new file mode 100644 index 0000000..9768474 --- /dev/null +++ b/test/resources/acceptance/simple__select_count.analysis.edn @@ -0,0 +1,3 @@ +{:has-wildcard? #{} + :source-columns [] + :tables [{:table "t"}]}