-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Conversation
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."; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Test build #65852 has finished for PR 15225 at commit
|
Test build #3289 has finished for PR 15225 at commit
|
LGTM. Merging to master and branch 2.0. |
## 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>
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