Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update split_part to support negative indexes vs failing #10761

Closed
tshauck opened this issue Jun 2, 2024 · 0 comments · Fixed by #10780
Closed

Update split_part to support negative indexes vs failing #10761

tshauck opened this issue Jun 2, 2024 · 0 comments · Fixed by #10780
Labels
enhancement New feature or request

Comments

@tshauck
Copy link
Contributor

tshauck commented Jun 2, 2024

Is your feature request related to a problem or challenge?

No response

Describe the solution you'd like

I'd like split_part('a-b', '-', -1) to return b. Right now it returns an execution error. This is different postgres for example, which does work...

postgres=# SELECT split_part('a-b', '-', -1);
 split_part 
------------
 b
(1 row)

vs

DataFusion CLI v38.0.0
> SELECT split_part('a-b', '-', -1);
Execution error: field position must be greater than zero

Describe alternatives you've considered

No response

Additional context

No response

@tshauck tshauck added the enhancement New feature or request label Jun 2, 2024
@tshauck tshauck closed this as completed Jun 2, 2024
@tshauck tshauck reopened this Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant