You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "David Li (Jira)" <ji...@apache.org> on 2022/05/20 20:21:00 UTC

[jira] [Created] (ARROW-16625) [C++] IPC: validate batch schema equals stream schema in debug mode

David Li created ARROW-16625:
--------------------------------

             Summary: [C++] IPC: validate batch schema equals stream schema in debug mode
                 Key: ARROW-16625
                 URL: https://issues.apache.org/jira/browse/ARROW-16625
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
            Reporter: David Li


This came up in a Flight/Flight SQL demo a colleague was working on; it was possible to write a batch with a differing schema than what was stated for the stream, which would lead to a decoding failure on the other side. It might be useful in DEBUG mode to DCHECK this and fail-fast.

The error message could also be improved; {{ArrayLoader.GetBuffer}} could at least return the index and the actual # of buffers



--
This message was sent by Atlassian Jira
(v8.20.7#820007)