Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-17652] Fix confusing exception message while reserving capacity #15225

Closed
wants to merge 1 commit into from

Conversation

sameeragarwal
Copy link
Member

What changes were proposed in this pull request?

This minor patch fixes a confusing exception message while reserving additional capacity in the vectorized parquet reader.

How was this patch tested?

Exisiting Unit Tests

@sameeragarwal
Copy link
Member Author

cc @yhuai

String message = "Cannot reserve additional contiguous bytes in the vectorized reader " +
"(requested = " + requiredCapacity + " bytes). As a workaround, you can disable the " +
"vectorized reader by setting " + SQLConf.PARQUET_VECTORIZED_READER_ENABLED().key() +
" to false.";
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to also explain what's the cause of this error in the error message?

Copy link
Member Author

Choose a reason for hiding this comment

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

Shouldn't the first line work: Cannot reserve additional contiguous bytes in the vectorized reader? Do you have something in mind?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh, I was thinking if we can explain the reason that fails the allocation instead of just saying we cannot allocate mem.

@SparkQA
Copy link

SparkQA commented Sep 23, 2016

Test build #65852 has finished for PR 15225 at commit ed87537.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Sep 24, 2016

Test build #3289 has finished for PR 15225 at commit ed87537.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@yhuai
Copy link
Contributor

yhuai commented Sep 26, 2016

LGTM. Merging to master and branch 2.0.

asfgit pushed a commit that referenced this pull request Sep 26, 2016
## What changes were proposed in this pull request?

This minor patch fixes a confusing exception message while reserving additional capacity in the vectorized parquet reader.

## How was this patch tested?

Exisiting Unit Tests

Author: Sameer Agarwal <sameerag@cs.berkeley.edu>

Closes #15225 from sameeragarwal/error-msg.

(cherry picked from commit 7c7586a)
Signed-off-by: Yin Huai <yhuai@databricks.com>
@asfgit asfgit closed this in 7c7586a Sep 26, 2016
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.

3 participants