Commit 994a22d
authored
fix: cast JSON and nested struct columns to string for anywidget rendering (#17189)
This Pull Request resolves visualization crashes when rendering
DataFrames or Series containing raw JSON and nested JSON struct
structures. It ensures that these columns are safely pre-serialized into
clean, flat JSON string format on the database level prior to visual
layout rendering.
Verified at: screen/424ojbuqyBPinTb
Fixes #<514763826> 🦕1 parent 9700dfc commit 994a22d
6 files changed
Lines changed: 420 additions & 357 deletions
File tree
- packages/bigframes
- bigframes
- display
- notebooks/dataframes
- tests/unit/display
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
822 | | - | |
823 | | - | |
824 | | - | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
825 | 841 | | |
826 | 842 | | |
827 | 843 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | | - | |
195 | | - | |
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
| |||
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
220 | | - | |
221 | | - | |
222 | 219 | | |
223 | 220 | | |
224 | 221 | | |
| |||
237 | 234 | | |
238 | 235 | | |
239 | 236 | | |
240 | | - | |
241 | 237 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 238 | + | |
246 | 239 | | |
247 | 240 | | |
248 | 241 | | |
| |||
290 | 283 | | |
291 | 284 | | |
292 | 285 | | |
293 | | - | |
294 | | - | |
295 | 286 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
305 | 291 | | |
306 | 292 | | |
307 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
575 | 578 | | |
576 | 579 | | |
577 | 580 | | |
| |||
0 commit comments