manojkarthick / pqrs

Command line tool for inspecting Parquet files
Apache License 2.0
283 stars 27 forks source link

consider removing first few lines of output from pqrs cat --json? #35

Open AlJohri opened 1 year ago

AlJohri commented 1 year ago

I would love to pipe the contents of pqrs cat --json <filename into jq or other tools. Currently the header from pqrs cat prevents me from doing this.


######################################################
File: ../myfolder/myfile.parquet
######################################################

Is there a chance we can either remove this entirely or remove it specifically when used with the --json flag?

My current version:

❯ pqrs --version
pqrs 0.2.0
AlJohri commented 1 year ago

Potentially related to --csv --no-header flag that was recently added: https://github.com/manojkarthick/pqrs/pull/31

klion26 commented 3 months ago

maybe we can add --quiet argument to cat command, if this is valid, I can make contribute this feature

manojkarthick commented 3 months ago

maybe we can add --quiet argument to cat command, if this is valid, I can make contribute this feature

Hi @klion26, for sure - happy to review and release the feature if you contribute.