alamb commented on code in PR #11180:
URL: https://github.com/apache/datafusion/pull/11180#discussion_r1680082243


##########
datafusion/sql/src/expr/mod.rs:
##########
@@ -341,7 +278,17 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
                     }
                 };
 
-                self.plan_field_access(expr, get_field_access)
+                let mut field_access_expr = RawFieldAccessExpr { expr, 
field_access };
+                for planner in self.planners.iter() {
+                    match planner.plan_field_access(field_access_expr, 
schema)? {
+                        PlannerResult::Planned(expr) => return Ok(expr),
+                        PlannerResult::Original(expr) => {
+                            field_access_expr = expr;
+                        }
+                    }
+                }
+
+                not_impl_err!("GetFieldAccess not supported by 
UserDefinedExtensionPlanners: {field_access_expr:?}")

Review Comment:
   Proposed fix is here: https://github.com/apache/datafusion/pull/11485



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to