Skip to content

Expose the Spark functions equal_null, to_binary, try_to_binary, encode and stack #1867

Backlog

Description

@slachiewicz

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
datafusion-spark 56 registers equal_null, to_binary, try_to_binary, encode and stack, but datafusion.functions.spark has no wrappers for them.

Describe the solution you'd like
Add the five wrappers to python/datafusion/functions/spark.py, each with a docstring example and coverage in python/tests/test_spark_functions.py.

Describe alternatives you've considered
None.

Additional context
stack sits in the upstream generator module. I have not checked whether it works as a plain scalar expression from the DataFrame API; if it does not, it can be split out.

Found by comparing the Python API with DataFusion 56.0.0 using the check-upstream skill.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions