Skip to content

rpad expression panics if length input is not a literal value #2096

@andygrove

Description

@andygrove

Describe the bug

The rpad expression panics if the length input is not a literal value.

For example, rpad(string_column, 10) works, but rpad(string_column, int_column) panics.

This is probably not a common usage, but we should fall back to Spark rather than panic.

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions