Clickhouse: Whats the max download limit in clickhouse ?

Created on 28 Feb 2019  ·  4Comments  ·  Source: ClickHouse/ClickHouse

Hi,

I ran a query without limit clause and total records set was some 16.5 M rows and i can only see first 10k records.

is there any way to see the next set of rows? and whats the max download limit ?

Thanks

question

Most helpful comment

# insert from csv file
clickhouse-client --query='INSERT INTO table_name FORMAT CSV' < data.csv

# select and put results to csv file
clickhouse-client --query='SELECT * FROM table_name FORMAT CSV' > data.csv

All 4 comments

To download data try to use non-human formats TSV / CSV / JSONEachRow
https://clickhouse.yandex/docs/en/interfaces/formats/
select * from numbers(10) format TSV

10000 -- controlled by output_format_pretty_max_rows

set output_format_pretty_max_rows = 3;
select * from numbers(10)
┌─number─┐
│      0 │
│      1 │
│      2 │
└────────┘
  Showed first 3.
set output_format_pretty_max_rows = 3;
select * from numbers(10) format TSV
0
1
2
3
4
5
6
7
8
9

Thanks, I got it.

Now I have a new query wherein I want to download the large file directly from the console.

Is there any command or format to download the CSV file into the server directly from the console?

Thanks,

# insert from csv file
clickhouse-client --query='INSERT INTO table_name FORMAT CSV' < data.csv

# select and put results to csv file
clickhouse-client --query='SELECT * FROM table_name FORMAT CSV' > data.csv

Thanks a lot

Was this page helpful?
0 / 5 - 0 ratings