You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2023/08/18 11:24:56 UTC

[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #7321: Add `internal_err` error macros. Part 2

alamb commented on code in PR #7321:
URL: https://github.com/apache/arrow-datafusion/pull/7321#discussion_r1298340000


##########
datafusion/sql/src/expr/mod.rs:
##########
@@ -192,39 +198,48 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
             }
 
             SQLExpr::ArrayIndex { obj, indexes } => {
-                let expr = self.sql_expr_to_logical_expr(*obj, schema, planner_context)?;
+                let expr =

Review Comment:
   it is interesting that this file was reformatted without changes 🤔 



##########
datafusion/physical-expr/src/functions.rs:
##########
@@ -1369,9 +1369,9 @@ mod tests {
                 lit("abcde"),
                 lit(ScalarValue::Int8(Some(2))),
             ],
-            Err(DataFusionError::Internal(
-                "function left requires compilation with feature flag: unicode_expressions.".to_string()
-            )),
+            internal_err!(

Review Comment:
   This wasn't caused by this PR, but it almost seems like these should be `plan_err!` rather than `internal_err!` (though maybe they are internal because this should have been checked earlier



##########
datafusion/sql/src/expr/mod.rs:
##########
@@ -192,39 +198,48 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
             }
 
             SQLExpr::ArrayIndex { obj, indexes } => {
-                let expr = self.sql_expr_to_logical_expr(*obj, schema, planner_context)?;
+                let expr =

Review Comment:
   it is interesting that this file was reformatted without changes 🤔 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org