williamhyun opened a new pull request #1033:
URL: https://github.com/apache/orc/pull/1033
### What changes were proposed in this pull request?
This PR aims to fix a NPE at benchmark data schema loading.
### Why are the changes needed?
**BEFORE**
```
$ java -jar core/target/orc-benchmarks-core-*-uber.jar scan data -d taxy -c
zstd
Exception in thread "main" java.lang.NullPointerException
at org.apache.orc.bench.core.Utilities.loadSchema(Utilities.java:37)
at
org.apache.orc.bench.core.convert.ScanVariants.run(ScanVariants.java:78)
at org.apache.orc.bench.core.Driver.main(Driver.java:64)
```
**AFTER**
```
$ java -jar core/target/orc-benchmarks-core-*-uber.jar scan data -d taxy -c
zstd
Exception in thread "main" java.lang.IllegalArgumentException: Schema Not
Found: taxy.schema
at
com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)
at org.apache.orc.bench.core.Utilities.loadSchema(Utilities.java:37)
at
org.apache.orc.bench.core.convert.ScanVariants.run(ScanVariants.java:78)
at org.apache.orc.bench.core.Driver.main(Driver.java:64)
```
### How was this patch tested?
Manually.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]