Commit 6878de1
authored
- When updating to AG Grid v34, seems there was a change in behaviour in
how the generated row ID was being used
- Previously for regular tables, we were just returning an empty string.
It doesn't seem to like that anymore
- Now it does not provide the getRowId function unless it's a tree or
pivot table. Regular tables just map the row index to the row ID
automatically
- Tested with tables of various sizes (scrolling gets screwy with over a
million rows, that's AG Grid's issue) and rollup tables:
```
from deephaven import empty_table
from deephaven import time_table
from deephaven.ag_grid import AgGrid
def make_simple_table(row_count):
"""
Make a basic table with the specified number of rows
"""
return empty_table(row_count).update_view("x=i")
thousand_rows = make_simple_table(1_000)
hundred_thousand_rows = make_simple_table(100_000)
million_rows = make_simple_table(1_000_000)
ten_million_rows = make_simple_table(10_000_000)
hundred_million_rows = make_simple_table(100_000_000)
billion_rows = make_simple_table(1_000_000_000)
ag_thousand_rows = AgGrid(thousand_rows)
ag_hundred_thousand_rows = AgGrid(hundred_thousand_rows)
ag_million_rows = AgGrid(million_rows)
ag_ten_million_rows = AgGrid(ten_million_rows)
ag_hundred_million_rows = AgGrid(hundred_million_rows)
ag_billion_rows = AgGrid(billion_rows)
from deephaven import agg
from deephaven.ag_grid import AgGrid
source = empty_table(10000).update(
[
"Group = i % 100",
"Subgroup = i % 3",
"Value = i * 10",
]
)
agg_list = [agg.avg(cols="AvgValue=Value"), agg.std(cols="StdValue=Value")]
by_list = ["Group", "Subgroup"]
rollup = source.rollup(aggs=agg_list, by=by_list)
ag_rollup = AgGrid(rollup)
```
1 parent ddd341e commit 6878de1
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
141 | | - | |
| 141 | + | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
156 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
157 | 162 | | |
158 | 163 | | |
159 | 164 | | |
| |||
170 | 175 | | |
171 | 176 | | |
172 | 177 | | |
173 | | - | |
| 178 | + | |
| 179 | + | |
174 | 180 | | |
175 | 181 | | |
176 | 182 | | |
| |||
0 commit comments