lib/blazer/adapters/bigquery_adapter.rb in blazer-2.4.5 vs lib/blazer/adapters/bigquery_adapter.rb in blazer-2.4.6
- old
+ new
@@ -11,10 +11,10 @@
# complete? was removed in google-cloud-bigquery 0.29.0
# code is for backward compatibility
if !results.respond_to?(:complete?) || results.complete?
columns = results.first.keys.map(&:to_s) if results.size > 0
- rows = results.map(&:values)
+ rows = results.all.map(&:values)
else
error = Blazer::TIMEOUT_MESSAGE
end
rescue => e
error = e.message