[ https://issues.apache.org/jira/browse/PARQUET-1333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uwe L. Korn updated PARQUET-1333: --------------------------------- Fix Version/s: cpp-1.5.0 > [C++] Reading of files with dictionary size 0 fails on Windows with bad_alloc > ----------------------------------------------------------------------------- > > Key: PARQUET-1333 > URL: https://issues.apache.org/jira/browse/PARQUET-1333 > Project: Parquet > Issue Type: Bug > Components: parquet-cpp > Affects Versions: cpp-1.4.0 > Environment: Microsoft Windows 10 Pro with latest arrow master. > Reporter: Philipp Hoch > Priority: Major > Fix For: cpp-1.5.0 > > > Account for total_size being 0, having no dictionary entries to allocate for. > The call with size 0 ends up in arrows memory_pool, > [https://github.com/apache/arrow/blob/884474ca5ca1b8da55c0b23eb7cb784c2cd9bdb4/cpp/src/arrow/memory_pool.cc#L50], > and the according allocation fails. See according documentation, > [https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/aligned-malloc]. > Only happens on Windows environment, as posix_memalign seems to handle 0 > inputs in unix environments. -- This message was sent by Atlassian JIRA (v7.6.3#76005)