Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ dependency-reduced-pom.xml
MANIFEST
compile_commands.json
build.ninja
build_debug/
build_release/

# Generated Visual Studio files
*.vcxproj
Expand Down
10 changes: 5 additions & 5 deletions cpp/src/arrow/dataset/file_json.cc
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ Result<Future<ReaderPtr>> DoOpenReader(
std::move(state->stream), state->read_options, state->parse_options);
});
ARROW_ASSIGN_OR_RAISE(auto future, maybe_future);
return future.Then([](const ReaderPtr& reader) -> Result<ReaderPtr> { return reader; },
[path = source.path()](const Status& error) -> Result<ReaderPtr> {
return error.WithMessage("Could not open JSON input source '",
path, "': ", error);
});
return future.Then([](const ReaderPtr& reader) -> Result<ReaderPtr> {
return reader;
}, [path = source.path()](const Status& error) -> Result<ReaderPtr> {
return error.WithMessage("Could not open JSON input source '", path, "': ", error);
});
}

Future<ReaderPtr> OpenReaderAsync(
Expand Down