Skip to content

ARROW-7062: [C++][Dataset] Ensure ParquetFileFormat::Open catch parqu…#5789

Closed
fsaintjacques wants to merge 1 commit intoapache:masterfrom
fsaintjacques:ARROW-7062-parquet-failures-should-propagate-filename
Closed

ARROW-7062: [C++][Dataset] Ensure ParquetFileFormat::Open catch parqu…#5789
fsaintjacques wants to merge 1 commit intoapache:masterfrom
fsaintjacques:ARROW-7062-parquet-failures-should-propagate-filename

Conversation

@fsaintjacques
Copy link
Copy Markdown
Contributor

…et's exception

It also improves the error message by pointing which file is failing.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 7, 2019

…et's exception

It also improves the error message by pointing which file is failing.
@fsaintjacques fsaintjacques force-pushed the ARROW-7062-parquet-failures-should-propagate-filename branch from bec2a06 to 82d9cd1 Compare November 7, 2019 23:38
*out = fs;

return Status::OK();
return fs;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need a move on some platforms to avoid a spurious copy (and clang will sometimes emit a warning about it)

Suggested change
return fs;
return std::move(fs);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every time I do this, I get a warning that it may disable RVO. Anyway, this is a mock class.

ASSERT_EQ((message), _st.ToString()); \
} while (false)

#define EXPECT_RAISES_WITH_MESSAGE_THAT(ENUM, matcher, expr) \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:+1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants