low-level helpers for Apache Spark libraries and tests