This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/master by this push:
new 6fd85a7 ORDER BY does not work with literals: Sort operation is not
applicable to scalar value 'foo' (#1197)
6fd85a7 is described below
commit 6fd85a71d24d032bc4fb94311785aa19408c46dc
Author: Carlos <[email protected]>
AuthorDate: Sat Oct 30 01:36:48 2021 +0800
ORDER BY does not work with literals: Sort operation is not applicable to
scalar value 'foo' (#1197)
---
datafusion/src/physical_plan/expressions/mod.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/datafusion/src/physical_plan/expressions/mod.rs
b/datafusion/src/physical_plan/expressions/mod.rs
index 4ca0036..843bee7 100644
--- a/datafusion/src/physical_plan/expressions/mod.rs
+++ b/datafusion/src/physical_plan/expressions/mod.rs
@@ -116,7 +116,7 @@ impl PhysicalSortExpr {
let array_to_sort = match value_to_sort {
ColumnarValue::Array(array) => array,
ColumnarValue::Scalar(scalar) => {
- return Err(DataFusionError::Internal(format!(
+ return Err(DataFusionError::Plan(format!(
"Sort operation is not applicable to scalar value {}",
scalar
)));