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
nu-table: Improve table -a
#11905
nu-table: Improve table -a
#11905
Conversation
Consume the whole stream; Make it more effective;
ae0c170
to
f1a118a
Compare
@zhiburt for some reason this is breaking ci with things like these. Any ideas what's going on?
|
@zhiburt something about these tests isn't quite right. any ideas? |
definitely closer. |
Don't forget to squash commits. Yes I was not sure about |
thanks again @zhiburt! |
@zhiburt one more question. i just want to make sure this stream collect is only being called with -a, we don't want to be collecting on other table modes. can you confirm that is correct? |
Correct nushell/crates/nu-command/src/viewers/table.rs Lines 800 to 810 in 73266ea
|
Thanks! |
Hi there; Sorry took that long to respond. I guess it's good? It will consume the whole stream whether possible. I do believe it will be faster in WSL in general too (in a sense of whole buffer output), but its interesting issue probably needed to be separated. It was not very well explained as well. ```nushell > 0..2000 | table -a 2 ╭───┬──────╮ │ 0 │ 0 │ │ 1 │ 1 │ │ 2 │ ... │ │ 3 │ 1999 │ │ 4 │ 2000 │ ╰───┴──────╯ ``` Take care fix: nushell#11845 cc: @fdncred
Hi there;
Sorry took that long to respond.
I guess it's good?
It will consume the whole stream whether possible.
I do believe it will be faster in WSL in general too (in a sense of whole buffer output), but its interesting issue probably needed to be separated. It was not very well explained as well.
Take care
fix: #11845
cc: @fdncred