Divyansh200102 commented on PR #38279:
URL: https://github.com/apache/arrow/pull/38279#issuecomment-1959324413

   I am not sure why these files are getting formattted 
`array.pxi`,`table.pxi`,`types.pxi` I don't know if this is an error from my 
compiler? Either way the checks were still failing
   ```diff
   diff --git a/python/pyarrow/_dataset_parquet.pyx 
b/python/pyarrow/_dataset_parquet.pyx
   index 2309c705d..e24fcf9d2 100644
   --- a/python/pyarrow/_dataset_parquet.pyx
   +++ b/python/pyarrow/_dataset_parquet.pyx
   @@ -626,7 +626,7 @@ cdef class ParquetFileWriteOptions(FileWriteOptions):
            >>> options = pq.ParquetFileWriteOptions(compression_level=5)
            >>> pq.write_table(table, "example_compression.parquet", 
write_options=options)
            """
   -   
   +
        def update(self, **kwargs):
            """
            Parameters
   diff --git a/python/pyarrow/array.pxi b/python/pyarrow/array.pxi
   index ad01d4557..e441278ae 100644
   --- a/python/pyarrow/array.pxi
   +++ b/python/pyarrow/array.pxi
   @@ -1748,7 +1748,8 @@ cdef class Array(_PandasConvertible):
                        inner_array = pyarrow_unwrap_array(casted_array)
                    except ArrowInvalid as e:
                        raise ValueError(
   -                        f"Could not cast {self.type} to requested type 
{target_type}: {e}"
   +                        f"Could not cast {self.type} to requested type {
   +                            target_type}: {e}"
                        )
                else:
                    inner_array = self.sp_array
   diff --git a/python/pyarrow/table.pxi b/python/pyarrow/table.pxi
   index ee3872aa3..18b7944d1 100644
   --- a/python/pyarrow/table.pxi
   +++ b/python/pyarrow/table.pxi
   @@ -3081,7 +3081,8 @@ cdef class RecordBatch(_Tabular):
                        inner_batch = pyarrow_unwrap_batch(casted_batch)
                    except ArrowInvalid as e:
                        raise ValueError(
   -                        f"Could not cast {self.schema} to requested schema 
{target_schema}: {e}"
   +                        f"Could not cast {self.schema} to requested schema {
   +                            target_schema}: {e}"
                        )
                else:
                    inner_batch = self.sp_batch
   diff --git a/python/pyarrow/types.pxi b/python/pyarrow/types.pxi
   index e9bf56c62..1f7773174 100644
   --- a/python/pyarrow/types.pxi
   +++ b/python/pyarrow/types.pxi
   @@ -133,7 +133,8 @@ cdef void* _as_c_pointer(v, allow_null=False) except *:
            else:
                capsule_name_str = capsule_name.decode()
                raise ValueError(
   -                f"Can't convert PyCapsule with name '{capsule_name_str}' to 
pointer address"
   +                f"Can't convert PyCapsule with name '{
   +                    capsule_name_str}' to pointer address"
                )
        else:
            raise TypeError(f"Expected a pointer value, got {type(v)!r}")
   
   ``` 


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