How can a bq query get 10,000 rows?

How can we get 10,000 rows or more using the bq command line ?

Here is our code:

 bq --format=csv query "SELECT * FROM  [test.t1] limit 10000 "  > rs.txt

But returned the data about 100 rows, we tried with "max_rows_per_request", but we can not.

+4
source share
1 answer

We will find a way to fix our code here: (add - max_rows )

bq --format=csv query --max_rows=100000  "SELECT * FROM  [test.t1] limit 10000  "  > a.txt
+4
source

Source: https://habr.com/ru/post/1619432/


All Articles