Your code is correct so I think something else is going on. Can you
give us more details about your environment, such as how you're
getting the Arrow C++ DLLs (nuget, conda, building from source) and
how you're compiling your program?



On Thu, Nov 16, 2023 at 4:27 AM <[email protected]> wrote:
>
> Hi,
>
>
>
> I’m trying to get Parquet to work in C++. I have the following code:
>
>
>
> #include "arrow/io/api.h"
>
> #include "parquet/arrow/reader.h"
>
> #include "arrow/io/file.h"
>
> #include "parquet/stream_reader.h"
>
>
>
> int main()
>
> {
>
>     std::shared_ptr<arrow::io::ReadableFile> infile;
>
>
>
>     PARQUET_ASSIGN_OR_THROW(
>
>         infile,
>
>         
> arrow::io::ReadableFile::Open("D:/path_to_parquet_file/file.parquet"));
>
> }
>
>
>
> I get an error on PARQUET_ASSIGN_OR_THROW. It seems to be unable to read 
> memory. Exception that I’m getting:
>
> Unhandled exception at 0x00007FFE2866CF19 in cpp.exe: Microsoft C++ 
> exception: parquet::ParquetStatusException at memory location 
> 0x000000648DCFFC60.: parquet::ParquetStatusException at memory location 
> 0x000000648DCFFC60.
>
>
>
> What is wrong with this code? I’m using VS Community 2022 and Windows 10 
> 64bit.
>
>
>
> Kind regards,
>
>
>
> Nick

Reply via email to