JingsongLi commented on code in PR #886:
URL: https://github.com/apache/incubator-paimon/pull/886#discussion_r1190601052


##########
paimon-hive/paimon-hive-connector-common/src/main/java/org/apache/paimon/hive/mapred/PaimonInputFormat.java:
##########
@@ -48,8 +49,9 @@ public InputSplit[] getSplits(JobConf jobConf, int numSplits) 
{
         FileStoreTable table = createFileStoreTable(jobConf);
         InnerTableScan scan = table.newScan();
         createPredicate(table.schema(), jobConf).ifPresent(scan::withFilter);
+        String location = 
jobConf.get(hive_metastoreConstants.META_TABLE_LOCATION);
         return scan.plan().splits().stream()
-                .map(split -> new 
PaimonInputSplit(table.location().toString(), (DataSplit) split))
+                .map(split -> new PaimonInputSplit(location, (DataSplit) 
split))

Review Comment:
   add comments here, why we need to use 
`hive_metastoreConstants.META_TABLE_LOCATION`.



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

Reply via email to