Skip to content

Port regr_* aggregates from Comet #167

Open

Description

@andygrove

Note

An LLM (Claude Code) created this issue. It compared the native expressions in Apache DataFusion Comet (native/spark-expr) with the functions in this crate. Check the details before you rely on them.

Is your feature request related to a problem or challenge?

Comet has a native, Spark-compatible implementation of regr_* aggregates that datafusion-spark does not have.

Spark expressions: regr_avgx, regr_avgy, regr_count, regr_intercept, regr_r2, regr_slope, regr_sxx, regr_sxy, regr_syy

Comet source (at 3878424d9):

Describe the solution you'd like

Port the implementation and its tests from Comet into datafusion-spark, and add .slt cases under crates/sqllogictest. Comet can then use the datafusion-spark version and remove its copy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions