GitHub user dongjoon-hyun opened a pull request:
https://github.com/apache/spark/pull/12041
[MINOR][SQL] Fix exception message to print string-array correctly.
## What changes were proposed in this pull request?
This PR is a simple fix for an exception message to print `string[]`
content correctly.
```java
String[] colPath = requestedSchema.getPaths().get(i);
...
- throw new IOException("Required column is missing in data file.
Col: " + colPath);
+ throw new IOException("Required column is missing in data file.
Col: " + Arrays.toString(colPath));
```
## How was this patch tested?
Manual.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dongjoon-hyun/spark
fix_exception_message_with_string_array
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12041.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #12041
----
commit 4d7891433a5b129056f2b549adc418bc8f35f9db
Author: Dongjoon Hyun <[email protected]>
Date: 2016-03-29T18:02:12Z
[MINOR][SQL] Fix exception message to print string-array correctly.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]