deephaven / web-client-ui

Deephaven Web Client UI
Apache License 2.0
29 stars 31 forks source link

Partitioned Tables Lose Time Formatting #2234

Closed dgodinez-dh closed 1 month ago

dgodinez-dh commented 2 months ago

This was seen in Enterprise ticket https://deephaven.atlassian.net/browse/DH-17730 I reproduced the issue in:

Because the Enterprise ticket is for Grizzly, the majority of my testing and investigation is for that version (Web Core+ v0.85.4).

To Reproduce

from deephaven import empty_table
from deephaven.time import dh_now

source = empty_table(5).update(["IntCol = i", "StrCol = `value`", "Timestamp = dh_now()"])
partitioned_table = source.partition_by(["Timestamp"])

Investigation

I found that IrisGridProxyModel was creating an IrisGridTableModel with an undefined formatter. I noticed several places in IrisGridProxyModel we use this.formatter. I believe it should be this.originalModel.formatter