thisisnic commented on issue #45888:
URL: https://github.com/apache/arrow/issues/45888#issuecomment-7186526127

   Thanks for reporting this! I'm going through older bug issues to see if we 
can close them out.
   
   `Table::Make` constructs the table without checking the columns against the 
schema; the check is `Table::Validate()` (or `ValidateFull()`), as suggested 
above. Running the program above against Arrow C++ 26.0.0 with those calls 
added:
   
   ```
   table->Validate():     Invalid: Column data for field 0 with type string is 
inconsistent with schema double
   table->ValidateFull(): Invalid: Column data for field 0 with type string is 
inconsistent with schema double
   ```
   
   So calling `Validate()` after `Table::Make` on input that isn't trusted 
catches this case before the table is passed on (to Acero, for example).
   
   Closing as not a bug.
   


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