-
Notifications
You must be signed in to change notification settings - Fork 80
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
Added support for head() and tail() for blink tables #4136
Added support for head() and tail() for blink tables #4136
Conversation
engine/table/src/main/java/io/deephaven/engine/table/impl/BlinkTableTools.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/BlinkTableTools.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/SliceLikeOperation.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/BlinkTableTools.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/SliceLikeOperation.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good. Let's ask @rcaudy about disconnecting the listener when the table is full (assuming you haven't).
engine/table/src/main/java/io/deephaven/engine/table/impl/BlinkTableTools.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/SliceLikeOperation.java
Outdated
Show resolved
Hide resolved
engine/table/src/test/java/io/deephaven/engine/table/impl/BlinkTableAggregationTest.java
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/QueryTable.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/SliceLikeOperation.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/SliceLikeOperation.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/BlinkTableTools.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/BlinkTableTools.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/BlinkTableTools.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/BlinkTableTools.java
Outdated
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/BlinkTableTools.java
Outdated
Show resolved
Hide resolved
Labels indicate documentation is required. Issues for documentation have been opened: How-to: https://github.com/deephaven/deephaven.io/issues/2891 |
Feature request, closes #2411
Change description: Before this change, head/tail operations on blink table would return the head/tail of the rows added to the blink table in the latest update cycle. After this change, head/tail would act the same as they would on an append-only (full history) table derived from the stream. For example, head(10) on a blink table would store the first 10 rows received by the blink table after the operation and then won't change. Similarly, tail(10) would store the latest 10 rows received by the blink table.
Also, after this change, headPct(), taillPct() and slice() will not be supported for blink tables and will return an error.
Documentation change: We need to provide the above description in the documentation pages of blink tables and these operations. These are some places I could find: Blink table, head Python, head Java, tail Python, tail Java