Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: xsv table without fully buffered data. #274

Open
vi opened this issue Jul 5, 2021 · 2 comments
Open

Feature request: xsv table without fully buffered data. #274

vi opened this issue Jul 5, 2021 · 2 comments

Comments

@vi
Copy link

vi commented Jul 5, 2021

I expect it to analyse e.g. 1000 first rows, calculate row widths, then just use those widths for the rest of the data without, even if some of fields exceed the width.

@AntonHermann
Copy link

I was thinking about a similar thing and I think it should be doable, I was thinking about a new flag --streaming. If this flag is passed, the wtr.flush() in src/cmd/table.rs:69 is executed inside the loop instead of after it, thus outputting a table row every input row.

This however I haven't tested yet, will try to do that the next days.

On the other hand, this repository seems to be on ice at the moment, see #267
There is a fork however that seems to be more actively maintained: qsv so maybe I will try to submit these changes over there :)

@jqnatividad
Copy link

Hi @AntonHermann, I'm the maintainer of the qsv fork and I too would like to see this feature and look forward to your PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants