Commit d92c91e
authored
feat: Add support for multi-partition parquet:kv tables (#1580)
Added feature to `IrisGridPartitionSelector` to display additional
partition selector dropdowns when more than one partition column is
present. The values displayed in the dropdown depend on the selected
partitions of columns to the left of it.
The "Append Command" button and associated functions are removed in
preparation for #1143.
Closes #1438
#### Testing instructions:
1. Create and open a multi-partition table:
```python
from deephaven import empty_table
part = empty_table(4).update("II=ii")
from deephaven.parquet import write, read
write(part, "/tmp/pt-1438/x=0/y=0/part.parquet")
write(part, "/tmp/pt-1438/x=0/y=1/part.parquet")
write(part, "/tmp/pt-1438/x=1/y=0/part.parquet")
write(part, "/tmp/pt-1438/x=1/y=1/part.parquet")
partition_table = read("/tmp/pt-1438")
```
2. Use the dropdown to select any combination of partitions and check
that it updates the table correctly.
* The dropdown should only display values that are available after
filtering for all the partitions left of it. (E.g. A state/province
dropdown should only contain the states/provinces corresponding to the
selected country.)
3. Test filtering by typing directly in the dropdown and searching by
using the search bar above the list of available partitions.
4. Retest using other data types for partition columns (dates, strings,
chars, doubles). E.g:
```python
from deephaven.parquet import write, read
write(part, "/tmp/pt2-1438/date_partition=2023-08-01/id_partition=id-001/decimal=0.1/part.parquet")
write(part, "/tmp/pt2-1438/date_partition=2023-08-01/id_partition=id-002/decimal=0.15/part.parquet")
write(part, "/tmp/pt2-1438/date_partition=2023-08-02/id_partition=id-001/decimal=0.08/part.parquet")
write(part, "/tmp/pt2-1438/date_partition=2023-08-02/id_partition=id-002/decimal=0.08/part.parquet")
write(part, "/tmp/pt2-1438/date_partition=2023-08-02/id_partition=id-003/decimal=0.1/part.parquet")
partition_table = read("/tmp/pt2-1438")
```
---------
Co-authored-by: georgecwan <georgecwan@users.noreply.github.com>1 parent fc543aa commit d92c91e
13 files changed
Lines changed: 593 additions & 314 deletions
File tree
- packages
- code-studio/src/styleguide
- dashboard-core-plugins/src/panels
- iris-grid/src
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
| 116 | + | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
Lines changed: 29 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | | - | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 118 | + | |
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
126 | 122 | | |
127 | 123 | | |
128 | 124 | | |
129 | 125 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
134 | 132 | | |
135 | 133 | | |
136 | 134 | | |
| |||
190 | 188 | | |
191 | 189 | | |
192 | 190 | | |
193 | | - | |
194 | | - | |
| 191 | + | |
| 192 | + | |
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
| |||
252 | 250 | | |
253 | 251 | | |
254 | 252 | | |
255 | | - | |
256 | 253 | | |
257 | 254 | | |
258 | 255 | | |
| |||
298 | 295 | | |
299 | 296 | | |
300 | 297 | | |
301 | | - | |
302 | | - | |
| 298 | + | |
| 299 | + | |
303 | 300 | | |
304 | 301 | | |
305 | 302 | | |
| |||
460 | 457 | | |
461 | 458 | | |
462 | 459 | | |
463 | | - | |
464 | | - | |
| 460 | + | |
| 461 | + | |
465 | 462 | | |
466 | 463 | | |
467 | 464 | | |
468 | 465 | | |
469 | | - | |
470 | | - | |
| 466 | + | |
| 467 | + | |
471 | 468 | | |
472 | 469 | | |
473 | 470 | | |
| |||
713 | 710 | | |
714 | 711 | | |
715 | 712 | | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | 713 | | |
725 | 714 | | |
726 | 715 | | |
| |||
1044 | 1033 | | |
1045 | 1034 | | |
1046 | 1035 | | |
1047 | | - | |
1048 | | - | |
| 1036 | + | |
| 1037 | + | |
1049 | 1038 | | |
1050 | 1039 | | |
1051 | 1040 | | |
| |||
1090 | 1079 | | |
1091 | 1080 | | |
1092 | 1081 | | |
1093 | | - | |
1094 | | - | |
| 1082 | + | |
| 1083 | + | |
1095 | 1084 | | |
1096 | 1085 | | |
1097 | 1086 | | |
| |||
1123 | 1112 | | |
1124 | 1113 | | |
1125 | 1114 | | |
1126 | | - | |
1127 | | - | |
| 1115 | + | |
| 1116 | + | |
1128 | 1117 | | |
1129 | 1118 | | |
1130 | 1119 | | |
| |||
1159 | 1148 | | |
1160 | 1149 | | |
1161 | 1150 | | |
1162 | | - | |
1163 | | - | |
| 1151 | + | |
| 1152 | + | |
1164 | 1153 | | |
1165 | 1154 | | |
1166 | 1155 | | |
| |||
1247 | 1236 | | |
1248 | 1237 | | |
1249 | 1238 | | |
1250 | | - | |
1251 | | - | |
| 1239 | + | |
| 1240 | + | |
1252 | 1241 | | |
1253 | 1242 | | |
1254 | 1243 | | |
| |||
1329 | 1318 | | |
1330 | 1319 | | |
1331 | 1320 | | |
1332 | | - | |
1333 | | - | |
| 1321 | + | |
| 1322 | + | |
1334 | 1323 | | |
1335 | 1324 | | |
1336 | 1325 | | |
| |||
1348 | 1337 | | |
1349 | 1338 | | |
1350 | 1339 | | |
1351 | | - | |
1352 | 1340 | | |
1353 | 1341 | | |
1354 | 1342 | | |
| |||
0 commit comments