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

[GitHub] [arrow] pitrou commented on issue #36311: utf8_slice_codeunits produces invalid unicode sequence

pitrou commented on issue #36311:
URL: https://github.com/apache/arrow/issues/36311#issuecomment-1609981981

   It gets even better in debug mode:
   ```python
   >>> import pyarrow.compute as pc
   >>> import pyarrow as pa
   >>> 
   >>> pa.compute.utf8_slice_codeunits(f"AB{chr(127917)}C{chr(127917)}ㇱD", start=2, stop=None, step=4)
   /home/antoine/arrow/dev/cpp/src/arrow/compute/kernels/scalar_string_internal.h:109:  Check failed: (output_ncodeunits) <= (max_output_ncodeunits) 
   ```
   
   @rok Would you like to take a look?


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