Skip to content

Implement Spark pow function #22598

Closed

Description

@comphead

Is your feature request related to a problem or challenge?

For query select pow(0, -1) the Datafusion pow fails with error, Spark variant should return Inf

scala> spark.sql("select pow(0, -1)").show(false)
+----------+
|pow(0, -1)|
+----------+
|Infinity  |
+----------+

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. added theissue type on May 28, 2026
  2. Brijesh-Thakkar commented on May 28, 2026

    @Brijesh-Thakkar
    Contributor

    @comphead Hii
    As i am restarting my Open source contribution and also i am new to this repo
    Earlier i contributed in apache/streampipes and datafusion-comet
    Ig i should start with this issue
    Will raise a PR for this issue
    Please assign it to me please

  3. comphead commented on May 28, 2026

    @comphead
    ContributorAuthor
  4. Brijesh-Thakkar commented on May 28, 2026

    @Brijesh-Thakkar
    Contributor

    @comphead I have opened the PR and done with the suggestions from copilot
    could u please review it once, so if any other changes are needed so i can work on them else we could just merge it if everything seems good to u

  5. Brijesh-Thakkar commented on May 29, 2026

    @Brijesh-Thakkar
    Contributor

    @comphead I have removed tests as u suggested and also added more edge cases
    Thanks

  6. added a commit that references this issue on May 29, 2026
    d8c4588
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions