Metadata-Version: 2.5
Name: sverify-spark
Version: 0.8.0
Summary: Spark as an engine of sverify: plans verified in Lean, written as Spark SQL
Project-URL: Source, https://github.com/AlexanderNenninger/substrait-lean/tree/main/engines/spark
Project-URL: Issues, https://github.com/AlexanderNenninger/substrait-lean/issues
License-Expression: MPL-2.0
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: sverify==0.8.0
Provides-Extra: run
Requires-Dist: pyspark>=4.0; extra == 'run'
Description-Content-Type: text/markdown

# sverify-spark

Sverify-spark is a working prototype, and so is sverify, which it extends.
Their proofs and code still need a human audit before anyone relies on their
results.

Spark as an engine of [sverify](https://github.com/AlexanderNenninger/substrait-lean):
a plan verified in Lean is written as Spark SQL, with a shim where Spark
differs from the reference, and runs on a Spark session under ANSI mode.
`pip install sverify[spark]` installs it with PySpark; `sverify-spark` alone
writes Spark SQL (`sverify_spark.dialect.SPARK`) without PySpark. sverify finds
it through its `ProfilePlugin` in the entry-point group `sverify.profiles`.

The directory holds the whole engine package:

- `src/sverify_spark/`: the plugin (`PLUGIN`), the dialect (`dialect`:
  `SPARK`, `SPARK_CONF`) and the runner on a Spark session (`engine`);
- `facts/`: what Spark does at each of the core's options, the evidence for
  `Profile.spark` ([facts/README.md](facts/README.md));
- `probes/`: the probes' and the fuzzer's recordings the facts cite;
- `tests/`: its tests, which run in sverify's test session
  (`python/pyproject.toml`'s `testpaths`).

Its Lean half, the profile and its shims, is in the root Lean package for now
(`SubstraitLean/SparkProfile.lean`, `SparkShims.lean`).
