MCPcopy Index your code
hub / github.com/pathwaycom/pathway / test_json_flatten_wrong_values

Function test_json_flatten_wrong_values

python/pathway/tests/test_json.py:444–452  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

442 [1, 0, 1.6, "1", "0", "true", {"field": [1]}, None],
443)
444def test_json_flatten_wrong_values(value):
445 input = _json_table(
446 data=[value],
447 )
448
449 input.flatten(pw.this.data)
450
451 with pytest.raises(ValueError, match=r"Pathway can't flatten this Json.*"):
452 run_all()
453
454
455def test_json_udf_array_getitem():

Callers

nothing calls this directly

Calls 3

run_allFunction · 0.90
_json_tableFunction · 0.85
flattenMethod · 0.80

Tested by

no test coverage detected