You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "wg1026688210 (via GitHub)" <gi...@apache.org> on 2024/03/01 04:47:46 UTC

[PR] [Hive]Pass Table to Split to Avoid Loading from FileSystem when createRecordReader [incubator-paimon]

wg1026688210 opened a new pull request, #2927:
URL: https://github.com/apache/incubator-paimon/pull/2927

   <!-- Please specify the module before the PR name: [core] ... or [flink] ... -->
   
   
   ### Purpose
   
   Pass Table to Split to Avoid Loading from File System when createRecordReader ,this can reduce the count of access FileSystem.
   
   <!-- Linking this pull request to the issue -->
   Linked issue: close #xxx
   
   <!-- What is the purpose of the change -->
   
   ### Tests
   
   <!-- List UT and IT cases to verify this change -->
   
   ### API and Format
   
   <!-- Does this change affect API or storage format -->
   
   ### Documentation
   
   <!-- Does this change introduce a new feature -->
   


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Hive]Pass Table to Split to Avoid Loading from FileSystem when createRecordReader [incubator-paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on code in PR #2927:
URL: https://github.com/apache/incubator-paimon/pull/2927#discussion_r1508491542


##########
paimon-hive/paimon-hive-connector-common/src/main/java/org/apache/paimon/hive/mapred/PaimonInputSplit.java:
##########
@@ -73,13 +78,28 @@ public String[] getLocations() {
         return ANYWHERE;
     }
 
+    public FileStoreTable getTable() {
+        return table;
+    }
+
     @Override
     public void write(DataOutput dataOutput) throws IOException {
         dataOutput.writeUTF(path);
         DataOutputSerializer out = new DataOutputSerializer(128);
         split.serialize(out);
         dataOutput.writeInt(out.length());
         dataOutput.write(out.getCopyOfBuffer());
+        writeFileStoreTable(dataOutput);
+    }
+
+    private void writeFileStoreTable(DataOutput dataOutput) throws IOException {
+        if (table == null) {

Review Comment:
   It should be nonnull



-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Hive]Pass Table to Split to Avoid Loading from FileSystem when createRecordReader [incubator-paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on code in PR #2927:
URL: https://github.com/apache/incubator-paimon/pull/2927#discussion_r1508491542


##########
paimon-hive/paimon-hive-connector-common/src/main/java/org/apache/paimon/hive/mapred/PaimonInputSplit.java:
##########
@@ -73,13 +78,28 @@ public String[] getLocations() {
         return ANYWHERE;
     }
 
+    public FileStoreTable getTable() {
+        return table;
+    }
+
     @Override
     public void write(DataOutput dataOutput) throws IOException {
         dataOutput.writeUTF(path);
         DataOutputSerializer out = new DataOutputSerializer(128);
         split.serialize(out);
         dataOutput.writeInt(out.length());
         dataOutput.write(out.getCopyOfBuffer());
+        writeFileStoreTable(dataOutput);
+    }
+
+    private void writeFileStoreTable(DataOutput dataOutput) throws IOException {
+        if (table == null) {

Review Comment:
   It should be nonnull



-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Hive]Pass Table into Split to Avoid Loading from FileSystem when createRecordReader [incubator-paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #2927:
URL: https://github.com/apache/incubator-paimon/pull/2927


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org