Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix BigQuery tests broken by #71771 (#72484)

metamben52257c531f9a
diff --git a/modules/drivers/bigquery-cloud-sdk/test/metabase/driver/bigquery_cloud_sdk/query_processor_test/reconciliation_test_util.clj b/modules/drivers/bigquery-cloud-sdk/test/metabase/driver/bigquery_cloud_sdk/query_processor_test/reconciliation_test_util.clj
index 48f2a71562f..2435e1c8abe 100644
--- a/modules/drivers/bigquery-cloud-sdk/test/metabase/driver/bigquery_cloud_sdk/query_processor_test/reconciliation_test_util.clj
+++ b/modules/drivers/bigquery-cloud-sdk/test/metabase/driver/bigquery_cloud_sdk/query_processor_test/reconciliation_test_util.clj
@@ -172,9 +172,11 @@
(defn- temporal-type-reconciliation-expected-value
[{:keys [field temporal-type expected-value honeysql-filter-fn num-args], :as _test-case}]
(let [field-literal? (lib.util.match/match-lite field [:field (_ :guard string?) _] true)
+ mock-field (get mock-temporal-fields temporal-type)
expected-identifier (cond-> (-> (h2x/identifier :field "ABC" (name temporal-type))
(vary-meta assoc ::bigquery.qp/do-not-qualify? true))
- (not field-literal?) (h2x/with-database-type-info (name temporal-type)))
+ (not field-literal?) (h2x/with-database-type-info (name temporal-type))
+ field-literal? (h2x/with-type-info {:effective-type (:base-type mock-field)}))
args (repeat (dec num-args) expected-value)]
(if (fn? honeysql-filter-fn)
(honeysql-filter-fn expected-identifier args)