Skip to content
Snippets Groups Projects
Commit eb571024 authored by Cam Saül's avatar Cam Saül
Browse files

Update BigQuery native test to make sure types are checked :keyboard:

parent 58581e3e
No related branches found
No related tags found
No related merge requests found
......@@ -81,11 +81,14 @@
;; make sure that BigQuery native queries maintain the column ordering specified in the SQL -- post-processing ordering shouldn't apply (Issue #2821)
(expect-with-engine :bigquery
["venue_id" "user_id" "checkins_id"]
(get-in (qp/process-query {:native {:query (apply format "SELECT [%stest_data.checkins.venue_id] AS [venue_id], [%stest_data.checkins.user_id] AS [user_id], [%stest_data.checkins.id] AS [checkins_id]
{:cols ["venue_id" "user_id" "checkins_id"]
:columns [{:name "venue_id", :base_type :IntegerField}
{:name "user_id", :base_type :IntegerField}
{:name "checkins_id", :base_type :IntegerField}]}
(dissoc (qp/process-query {:native {:query (apply format "SELECT [%stest_data.checkins.venue_id] AS [venue_id], [%stest_data.checkins.user_id] AS [user_id], [%stest_data.checkins.id] AS [checkins_id]
FROM [%stest_data.checkins]
LIMIT 2"
(repeat 4 bq-data/unique-prefix))}
:type :native
:database (data/id)})
[:data :columns]))
:rows))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment