Skip to content

Stream support - #812

Merged
sophiajt merged 36 commits into
nushell:masterfrom
sophiajt:stream_wip
Oct 13, 2019
Merged

sophiajt merged 36 commits into
nushell:masterfrom
sophiajt:stream_wip

Conversation

@sophiajt

@sophiajt sophiajt commented Oct 13, 2019 •

Copy link
Copy Markdown
Contributor

This PR adds streaming support for tables in Nu (with the exception of streaming plugin sinks).

To do so, it does the following:

  • Moves off of draining between filters. Instead, the sink will pull on the stream, and will drain element-wise. This moves the whole stream to being lazy.
  • Adds paged displaying of table contents. By default, it will print tables of 50 rows a piece.
  • Adds ctrl-c support and connects it into some of the key points where we pull on the stream. If a ctrl-c is detect, we immediately halt pulling on the stream and return to the prompt.
  • Moves away from having a SourceMap where anchor locations are stored. Now AnchorLocation is kept directly in the Tag.
  • To make this possible, split tag and span. Span is largely used in the parser and is copyable. Tag is now no longer copyable.

@gitpod-io

gitpod-io Bot commented Oct 13, 2019

Copy link
Copy Markdown

@sophiajt
sophiajt merged commit 193b007 into nushell:master Oct 13, 2019
@sophiajt
sophiajt deleted the stream_wip branch October 13, 2019 04:12
thomasheartman pushed a commit to thomasheartman/nushell that referenced this pull request Oct 14, 2019
* Moves off of draining between filters. Instead, the sink will pull on the stream, and will drain element-wise. This moves the whole stream to being lazy.
* Adds ctrl-c support and connects it into some of the key points where we pull on the stream. If a ctrl-c is detect, we immediately halt pulling on the stream and return to the prompt.
* Moves away from having a SourceMap where anchor locations are stored. Now AnchorLocation is kept directly in the Tag.
* To make this possible, split tag and span. Span is largely used in the parser and is copyable. Tag is now no longer copyable.
thomasheartman pushed a commit to thomasheartman/nushell that referenced this pull request Oct 14, 2019
* Moves off of draining between filters. Instead, the sink will pull on the stream, and will drain element-wise. This moves the whole stream to being lazy.
* Adds ctrl-c support and connects it into some of the key points where we pull on the stream. If a ctrl-c is detect, we immediately halt pulling on the stream and return to the prompt.
* Moves away from having a SourceMap where anchor locations are stored. Now AnchorLocation is kept directly in the Tag.
* To make this possible, split tag and span. Span is largely used in the parser and is copyable. Tag is now no longer copyable.
elferherrera pushed a commit to elferherrera/nushell that referenced this pull request Feb 7, 2022
kubouch pushed a commit that referenced this pull request Feb 7, 2022
bobhy pushed a commit to bobhy/nushell that referenced this pull request Oct 22, 2023
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

Successfully merging this pull request may close these issues.

1 participant