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

Maybe a misuse of plan_err #7879

Closed
waynexia opened this issue Oct 20, 2023 · 1 comment · Fixed by #7996
Closed

Maybe a misuse of plan_err #7879

waynexia opened this issue Oct 20, 2023 · 1 comment · Fixed by #7996
Assignees
Labels
bug Something isn't working

Comments

@waynexia
Copy link
Member

waynexia commented Oct 20, 2023

Describe the bug

https://github.com/apache/arrow-datafusion/blob/37d6bf08c948418fe6c72d072d988c2875d81e02/datafusion/physical-expr/src/sort_expr.rs#L64-L73

This function (PhysicalSortExpr::evaluate_to_sort_column()) is in the execution phase. Errors at this stage should be exec_err! rather than plan_err!, right?

I also see other places have similar behavior and open this ticket to confirm. I'll submit a patch to change them if so.

To Reproduce

No response

Expected behavior

No response

Additional context

No response

@waynexia waynexia added the bug Something isn't working label Oct 20, 2023
@alamb
Copy link
Contributor

alamb commented Oct 20, 2023

I agree this would be better as a execution_error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants