Skip to content

[C++] Failed to open local file: Bad file descriptor #22130

@asfimport

Description

@asfimport

I open an output stream to write a parquet file. Here is the code:

std::shared_ptr<arrow::io::OutputStream> outStream;
arrow::Status err;

err = arrow::io::FileOutputStream::Open(filePath.toStdString(), false, &outStream);
if (err.code() != arrow::StatusCode::OK) {
    std::cout << err.message() << std::endl;
}

Here is the error message I got:

Failed to open local file: <path_to_parquet_file> , error: Bad file descriptor"

I've got this error only when running on Windows version 10.0.10586.1106 (th2_release.170904-1742).

Any idea?

Environment: Windows version 10.0.10586.1106 (th2_release.170904-1742)
Reporter: Tham / @thamht4190

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-5700. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions