1fanwang commented on code in PR #51163:
URL: https://github.com/apache/arrow/pull/51163#discussion_r4067951883


##########
python/pyarrow/_acero.pyx:
##########
@@ -594,6 +594,8 @@ cdef class Declaration(_Weakrefable):
             CDeclaration c_decl
 
         for decl in decls:
+            if not isinstance(decl, Declaration):
+                raise TypeError("Expected a Declaration")

Review Comment:
   Done in 
https://github.com/apache/arrow/commit/f317332f653d0b3655bc49c4fbb4b13e425cc698.



-- 
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]

Reply via email to