ayushtkn commented on code in PR #4910:
URL: https://github.com/apache/hive/pull/4910#discussion_r1412377910


##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergInputFormat.java:
##########
@@ -176,6 +179,20 @@ public RecordReader<Void, Container<Record>> 
getRecordReader(InputSplit split, J
     }
   }
 
+  private static void validateFilesWithinTableDirectory(InputSplit split, 
JobConf job) throws IOException {
+    boolean dataFilesWithingTableLocationOnly =

Review Comment:
   sorted



##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergInputFormat.java:
##########
@@ -152,8 +153,10 @@ public InputSplit[] getSplits(JobConf job, int numSplits) 
throws IOException {
   }
 
   @Override
-  public RecordReader<Void, Container<Record>> getRecordReader(InputSplit 
split, JobConf job,
-                                                               Reporter 
reporter) throws IOException {
+  public RecordReader<Void, Container<Record>> getRecordReader(InputSplit 
split, JobConf job, Reporter reporter)
+      throws IOException {
+    validateFilesWithinTableDirectory(split, job);

Review Comment:
   Done



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to