Skip to content
Snippets Groups Projects
Unverified Commit 35fda85d authored by Ngoc Khuat's avatar Ngoc Khuat Committed by GitHub
Browse files

Fix flaky switch project id test for bigquery (#28943)

* fix the flaky test for Bigquery

* adds a limit to make sure we don't have a big charge on CI
parent 065ce4e9
Branches
Tags
No related merge requests found
......@@ -267,33 +267,12 @@
;; make sure all the fields for taxi_tips were synced
(is (= 23 (db/count Field :table_id (u/the-id tbl))))))
(testing " for querying"
(is (= ["ff0b96c0cada768361b1c9341e11905254644afb"
"c7fd753040e0170e38049465089bca99c750f5ed8b3f6c547b303057ec23be36b9b86790fe417bb5949d980892460a2732a28a515bb805cf967bf4cf4b44b074"
"2016-09-20T07:15:00Z"
"2016-09-20T07:30:00Z"
1265
7.2
nil
nil
nil
nil
0.01
0.0
nil
0.0
0.01
"Cash"
"303 Taxi"
nil
nil
nil
nil
nil
nil]
(mt/first-row
(mt/run-mbql-query taxi_trips
{:filter [:= [:field (mt/id :taxi_trips :unique_key) nil]
"ff0b96c0cada768361b1c9341e11905254644afb"]})))))
(is (= 23
(count (mt/first-row
(mt/run-mbql-query taxi_trips
{:filter [:= [:field (mt/id :taxi_trips :payment_type) nil]
"Cash"]
:limit 1}))))))
(testing " has project-id-from-credentials set correctly"
(is (= (bigquery-project-id) (get-in temp-db [:details :project-id-from-credentials])))))))))
......@@ -347,7 +326,7 @@
:fields #{{:name "int_col", :database-type "INTEGER", :base-type :type/Integer, :database-position 0}
{:name "array_col", :database-type "INTEGER", :base-type :type/Array, :database-position 1}}}
(driver/describe-table :bigquery-cloud-sdk (mt/db) {:name tbl-nm, :schema "v3_test_data"}))
"`describe-table` should detect the correct base-type for array type columns")))))
"`describe-table` should detect the correct base-type for array type columns")))))
(deftest sync-inactivates-old-duplicate-tables
(testing "If on the new driver, then downgrade, then upgrade again (#21981)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment