9 stable releases

new 50.3.0 Oct 24, 2025
50.2.0 Oct 13, 2025
50.0.0 Sep 16, 2025
49.0.2 Aug 25, 2025
48.0.0 Jun 12, 2025

#337 in Text processing

Download history 14001/week @ 2025-07-04 8696/week @ 2025-07-11 4913/week @ 2025-07-18 5695/week @ 2025-07-25 17537/week @ 2025-08-01 29057/week @ 2025-08-08 24234/week @ 2025-08-15 24094/week @ 2025-08-22 22101/week @ 2025-08-29 26586/week @ 2025-09-05 23286/week @ 2025-09-12 23459/week @ 2025-09-19 34875/week @ 2025-09-26 22518/week @ 2025-10-03 28805/week @ 2025-10-10 17870/week @ 2025-10-17

107,282 downloads per month
Used in datafusion-sqllogictest

Apache-2.0

4MB
82K SLoC

datafusion-spark: Spark-compatible Expressions

This crate provides Apache Spark-compatible expressions for use with DataFusion.

Testing Guide

When testing functions by directly invoking them (e.g., test_scalar_function!()), input coercion (from the signature or coerce_types) is not applied.

Therefore, direct invocation tests should only be used to verify that the function is correctly implemented.

Please be sure to add additional tests beyond direct invocation. For more detailed testing guidelines, refer to the Spark SQLLogicTest README.

Implementation References

When implementing Spark-compatible functions, you can check if there are existing implementations in the Sail or Comet projects first. If you do port functionality from these sources, make sure to port over the corresponding tests too, to ensure correctness and compatibility.

Dependencies

~58MB
~1M SLoC