You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/07/08 15:01:48 UTC
[GitHub] [hudi] leesf commented on a change in pull request #3237: [HUDI-1828] Update unit tests to support ORC as the base file format
leesf commented on a change in pull request #3237:
URL: https://github.com/apache/hudi/pull/3237#discussion_r666277226
##########
File path: hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/HoodieReadClient.java
##########
@@ -144,7 +145,15 @@ private void assertSqlContext() {
// record locations might be same for multiple keys, so need a unique list
Set<String> uniquePaths = new HashSet<>(paths);
- Dataset<Row> originalDF = sqlContextOpt.get().read().parquet(uniquePaths.toArray(new String[uniquePaths.size()]));
+ Dataset<Row> originalDF = null;
+ if (uniquePaths.size() == 0) {
Review comment:
merge with `paths.get(0).endsWith(HoodieFileFormat.PARQUET.getFileExtension()`?
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org