This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new c2c0d752b [core] Remove useless OrcReaderFactory.computeProjectionMask
c2c0d752b is described below
commit c2c0d752b3299684b0bb919360f77b2f7cb6381a
Author: Jingsong <[email protected]>
AuthorDate: Mon Apr 22 19:08:43 2024 +0800
[core] Remove useless OrcReaderFactory.computeProjectionMask
---
.../apache/paimon/format/orc/OrcReaderFactory.java | 20 --------------------
1 file changed, 20 deletions(-)
diff --git
a/paimon-format/src/main/java/org/apache/paimon/format/orc/OrcReaderFactory.java
b/paimon-format/src/main/java/org/apache/paimon/format/orc/OrcReaderFactory.java
index c084c7250..4657caebe 100644
---
a/paimon-format/src/main/java/org/apache/paimon/format/orc/OrcReaderFactory.java
+++
b/paimon-format/src/main/java/org/apache/paimon/format/orc/OrcReaderFactory.java
@@ -326,26 +326,6 @@ public class OrcReaderFactory implements
FormatReaderFactory {
}
}
- /**
- * Computes the ORC projection mask of the fields to include from the
selected
- * fields.rowOrcInputFormat.nextRecord(null).
- *
- * @return The ORC projection mask.
- */
- private static boolean[] computeProjectionMask(TypeDescription schema,
int[] selectedFields) {
- // mask with all fields of the schema
- boolean[] projectionMask = new boolean[schema.getMaximumId() + 1];
- // for each selected field
- for (int inIdx : selectedFields) {
- // set all nested fields of a selected field to true
- TypeDescription fieldSchema = schema.getChildren().get(inIdx);
- for (int i = fieldSchema.getId(); i <= fieldSchema.getMaximumId();
i++) {
- projectionMask[i] = true;
- }
- }
- return projectionMask;
- }
-
public static org.apache.orc.Reader createReader(
org.apache.hadoop.conf.Configuration conf,
FileIO fileIO,