()
| 416 | |
| 417 | |
| 418 | def test_json_flatten(): |
| 419 | input = _json_table( |
| 420 | data=[[1, 2], [3], [4, 5]], |
| 421 | ) |
| 422 | |
| 423 | result = input.flatten(pw.this.data).select(data=pw.this.data.as_int()) |
| 424 | |
| 425 | assert_table_equality_wo_index( |
| 426 | T( |
| 427 | """ |
| 428 | | data |
| 429 | 1 | 1 |
| 430 | 2 | 2 |
| 431 | 3 | 3 |
| 432 | 4 | 4 |
| 433 | 5 | 5 |
| 434 | """ |
| 435 | ).update_types(data=Optional[int]), |
| 436 | result, |
| 437 | ) |
| 438 | |
| 439 | |
| 440 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected