icexelloss commented on code in PR #34279:
URL: https://github.com/apache/arrow/pull/34279#discussion_r1114683284
##########
python/pyarrow/_substrait.pyx:
##########
@@ -27,7 +27,7 @@ from pyarrow.includes.libarrow cimport *
from pyarrow.includes.libarrow_substrait cimport *
-cdef CDeclaration _create_named_table_provider(dict named_args, const
std_vector[c_string]& names):
+cdef CDeclaration _create_named_table_provider(dict named_args, const
std_vector[c_string]& names, const CSchema& schema):
Review Comment:
Hmm, any quick ideas on the error?
```
py_names = []
for i in range(names.size()):
c_name = names[i]
py_names.append(frombytes(c_name))
c_schema_sp = shared_ptr[CSchema](schema)
^
------------------------------------------------------------
pyarrow/_substrait.pyx:42:37: Cannot convert 'shared_ptr[CSchema]' to Python
object
gmake[2]: *** [CMakeFiles/_substrait_pyx.dir/build.make:71:
CMakeFiles/_substrait_pyx] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:785: CMakeFiles/_substrait_pyx.dir/all]
Error 2
```
--
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]