Contributing to SparkleFrame
These guides are the detailed companions to the top-level AGENTS.md (the lean entry point) and ARCHITECTURE.md (the codemap). Read the guide for the area you're working in before you start.
The guides
| Guide | Read it when… |
|---|---|
| adding-a-feature.md | You're adding or changing a functions / column / dataframe API — the end-to-end checklist. |
| testing.md | You're writing tests — parity tests, valid + malformed coverage, the oracle. |
| spark4-semantics.md | You're touching cast/parse or any strict-vs-lenient (try_*) behavior. |
| engines.md | You're working on an engine or the parity gate / ratchet. |
| release.md | You're cutting a new release to PyPI and the docs site. |
The contribution loop at a glance
- Locate the right layer — engine package facade (
sparkleframe/<engine>/) + its*_helpers.py. See ARCHITECTURE.md. - Implement following the engine conventions; for cast/parse, follow the strict/lenient pattern in spark4-semantics.md.
- Test against real Spark with parity tests covering valid and malformed inputs (testing.md).
- Update the gate if you promoted a behavior on an engine (engines.md).
- Verify with
make pr-check(black + lint + coverage), always in Docker.
The full version is in adding-a-feature.md.