cxzl25 opened a new pull request, #2504:
URL: https://github.com/apache/orc/pull/2504
### What changes were proposed in this pull request?
This PR aims to fix convert tool failed to read csv.
### Why are the changes needed?
`orc-tools-2.2.2-uber.jar` is not packaged `commons-lang3`, which causes its
convert command to fail to read csv.
```java
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/orc/shade/commons/lang3/ObjectUtils
at com.opencsv.CSVParser.<init>(CSVParser.java:110)
at com.opencsv.CSVParserBuilder.build(CSVParserBuilder.java:139)
at org.apache.orc.tools.convert.CsvReader.<init>(CsvReader.java:89)
at
org.apache.orc.tools.convert.ConvertTool$FileInformation.getRecordReader(ConvertTool.java:162)
at org.apache.orc.tools.convert.ConvertTool.run(ConvertTool.java:221)
at org.apache.orc.tools.convert.ConvertTool.main(ConvertTool.java:174)
at org.apache.orc.tools.Driver.main(Driver.java:118)
Caused by: java.lang.ClassNotFoundException:
org.apache.orc.shade.commons.lang3.ObjectUtils
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
... 7 more
```
### How was this patch tested?
local test
### Was this patch authored or co-authored using generative AI tooling?
No
--
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]