From b60a25ea26e7d3390a15b6d5bfaad4be7eef5487 Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Fri, 15 Sep 2023 13:21:12 -0500 Subject: [PATCH] feat: JSON: refactor IO for JSON; make input implementations column optimizable (#94) --- docs/how-to/configuration.rst | 9 +- docs/more/optimization.rst | 30 +- src/dask_awkward/__init__.py | 2 +- src/dask_awkward/awkward.yaml | 17 +- src/dask_awkward/lib/_utils.py | 4 + src/dask_awkward/lib/core.py | 12 +- src/dask_awkward/lib/io/io.py | 13 +- src/dask_awkward/lib/io/json.py | 999 +++++++++++++++++++++-------- src/dask_awkward/lib/io/parquet.py | 19 +- src/dask_awkward/lib/testutils.py | 2 +- tests/conftest.py | 2 +- tests/test_core.py | 16 +- tests/test_io.py | 123 +--- tests/test_io_json.py | 211 ++++++ 14 files changed, 1040 insertions(+), 419 deletions(-) create mode 100644 tests/test_io_json.py diff --git a/docs/how-to/configuration.rst b/docs/how-to/configuration.rst index 4abd6d1f..80b85484 100644 --- a/docs/how-to/configuration.rst +++ b/docs/how-to/configuration.rst @@ -19,7 +19,7 @@ with the form: .. code-block:: python - with dask.config.set({"awkward.