You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Rob Saccoccio (Jira)" <ji...@apache.org> on 2022/02/09 15:53:00 UTC

[jira] [Created] (ARROW-15626) [Glib] GIOInputStream returns shorts short reads

Rob Saccoccio created ARROW-15626:
-------------------------------------

             Summary: [Glib] GIOInputStream returns shorts short reads
                 Key: ARROW-15626
                 URL: https://issues.apache.org/jira/browse/ARROW-15626
             Project: Apache Arrow
          Issue Type: Bug
          Components: GLib
    Affects Versions: 7.0.0, 6.0.0
         Environment: All unix based platforms.
            Reporter: Rob Saccoccio


The Read() methods in c_glib/arrow-glib/input-stream.cpp:GIOInputStream can return short when used with a GInputStream that can return short reads (such as a socket), e.g.
{code:c}
GInputStream *gis = g_unix_input_stream_new(socket_fd, FALSE);
GArrowGIOInputStream *is = garrow_gio_input_stream_new(gis);
GArrowRecordBatchStreamReader *stream_reader =
            garrow_record_batch_stream_reader_new(
                    GARROW_INPUT_STREAM(is), &gerr);
{code}
This causes failure in the RecordBatchReader.

I have a patch and will post a PR shortly.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)