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)

Reply via email to