Weston Pace created ARROW-12827:
-----------------------------------

             Summary: [C++] [Dataset] Review error pass-through in the datasets 
API
                 Key: ARROW-12827
                 URL: https://issues.apache.org/jira/browse/ARROW-12827
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Weston Pace


There is at least one (and I think there are actually several) places in the 
datasets API where we are bubbling up errors without attaching the necessary 
context.  For example, in the discussion here 
[https://github.com/apache/arrow/pull/10326#pullrequestreview-662095548] a call 
to "DatasetFactory::Create" (where the user incorrectly assigned a default file 
format of parquet) is returning "Parquet magic bytes not found in footer" 
instead of something like "Dataset creation failed. The fragment 
'/2019/July/myfile.csv' did not match the expected 'parquet'' format: Parquet 
magic bytes not found in footer"



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to