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

DH-16865: Partitioned table with no data displays a spinner indefinitely #1904

Open
vbabich opened this issue Mar 25, 2024 · 5 comments · May be fixed by #1953
Open

DH-16865: Partitioned table with no data displays a spinner indefinitely #1904

vbabich opened this issue Mar 25, 2024 · 5 comments · May be fixed by #1953
Assignees
Labels
bug Something isn't working
Milestone

Comments

@vbabich
Copy link
Collaborator

vbabich commented Mar 25, 2024

Steps to reprodude:

Run this snippet to create a partitioned table with no data:

from deephaven import empty_table
t = empty_table(0).update("X=ii").partition_by("X")

Expected:

  • Table loads with no data rows

Actual:

  • Table shows a spinner, doesn't load
@vbabich vbabich added bug Something isn't working triage Issue requires triage labels Mar 25, 2024
@mattrunyon
Copy link
Collaborator

Test it works if the table is ticking and a partition is added at least. This will load for around 20s until the first row ticks in

from deephaven import time_table
t2 = time_table("PT20S").update("X=ii").where("X>0").partition_by("X")

@vbabich
Copy link
Collaborator Author

vbabich commented Mar 25, 2024

// We want to wait for the first UPDATED event instead of just getting viewport data here
// It's possible that the key table does not have any rows of data yet, so just wait until it does have one

https://github.com/deephaven/web-client-ui/blob/main/packages/iris-grid/src/IrisGrid.tsx#L2042

@mofojed mofojed removed the triage Issue requires triage label Mar 26, 2024
@mofojed mofojed added this to the April 2024 milestone Mar 26, 2024
@mofojed
Copy link
Member

mofojed commented Mar 26, 2024

We can show the empty table until the first key ticks in, in which case then we want to select that first key.

@illumon-public-sunil
Copy link

This is an issue in both Core+ and Legacy workers and is present in 1.20231218.219 as well.

Attaching images of Core+, Legacy worker and swing

image

image

image

@mofojed mofojed assigned mofojed and vbabich and unassigned mofojed Apr 15, 2024
@vbabich vbabich linked a pull request Apr 22, 2024 that will close this issue
@illumon-public-sunil
Copy link

Noticed the same behavior on a query that includes a where clause. However, the filter column used in where clause is not the partition column, behavior is the same in Legacy and Core+.

Adding empty where() to the end of the query works.

Adding the comment just to capture another use case.

@vbabich vbabich changed the title Partitioned table with no data displays a spinner indefinitely DH-16865: Partitioned table with no data displays a spinner indefinitely Apr 24, 2024
@mofojed mofojed modified the milestones: April 2024, May 2024 May 13, 2024
@mofojed mofojed modified the milestones: May 2024, June 2024 Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants