(**kwargs)
| 51 | |
| 52 | |
| 53 | def _optional_json_table(**kwargs) -> pw.Table: |
| 54 | @pw.udf |
| 55 | def filter_null(col: pw.Json) -> pw.Json | None: |
| 56 | if col == pw.Json(None): |
| 57 | return None |
| 58 | return col |
| 59 | |
| 60 | table = _json_table(**kwargs) |
| 61 | |
| 62 | return table.select(**{name: filter_null(pw.this[name]) for name in kwargs}) |
| 63 | |
| 64 | |
| 65 | def test_json_get_simple(): |
no test coverage detected