Skip to content

Some datafusion-spark expressions are missing the physical implementation #21959

Open

Description

@andygrove

Describe the bug

I wanted to add base64 support in Comet using the expression from datafusion-spark, but it has no implementation, so I had to implement a custom version in Comet. This doesn't seem ideal.

  fn invoke_with_args(&self, _args: ScalarFunctionArgs) -> Result<ColumnarValue> {                                                                                                                     
      exec_err!("invoke should not be called on a simplified {} function", self.name())                                                                                                                
  }                                                                                                                                                                                                    

Impacted functions:

  • base64
  • unix
  • trunc
  • if
  • date_diff
  • time_trunc
  • date_trunc
  • add_months
  • date_part

Additional context

https://discord.com/channels/885562378132000778/1413656077014143008/1499408538429030421

Activity

  1. added theissue type on Apr 30, 2026
  2. coderfender commented on Apr 30, 2026

    @coderfender
    Contributor

    Let me take on this and also other expressions to completely remove simplify methods in df-spark crate given comet (and hopefully other downstream consumers) use it

  3. self-assigned this
    on Apr 30, 2026
  4. coderfender commented on May 5, 2026

    @coderfender
    Contributor

    Raised discussion thread : #22012

  5. Jefffrey commented on Aug 6, 2026

    @Jefffrey
    Contributor

    @coderfender if youre still keen on this issue, I've updated the issue body with the list of functions to tackle to close this issue

  6. coderfender commented on Aug 6, 2026

    @coderfender
    Contributor

    Awesome let handle this over the weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions