Clickhouse: How to pretty print a generated RowBinary file?

Created on 3 Jul 2019  路  3Comments  路  Source: ClickHouse/ClickHouse

Hello all,

Given a valid ClickHouse RowBinary file, how I can prettyprint the row data within the file?

Thank you

question

All 3 comments

Sure! It's very easy to do with clickhouse-local:

clickhouse-local --structure "x UInt8, y String, ..." --query "SELECT * FROM table" --input-format RowBinary --output-format TSV < file

You have to know correct data structure (--structure parameter).

You can use clickhouse-local tool for converting between various formats and for data processing without a server.

If you want prettyprint, use --output-format Pretty.

It works for me.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

derekperkins picture derekperkins  路  3Comments

opavader picture opavader  路  3Comments

vixa2012 picture vixa2012  路  3Comments

fizerkhan picture fizerkhan  路  3Comments

goranc picture goranc  路  3Comments