This is an automated email from the ASF dual-hosted git repository.
gangwu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/parquet-java.git
The following commit(s) were added to refs/heads/master by this push:
new 8127cc3fe GH-3127: Enabled `parquet.hadoop.vectored.io.enabled` by
default (#3128)
8127cc3fe is described below
commit 8127cc3fe6690cce42febf35a795d17d9f956218
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Jan 20 20:51:08 2025 -0800
GH-3127: Enabled `parquet.hadoop.vectored.io.enabled` by default (#3128)
---
parquet-hadoop/README.md | 2 +-
.../src/main/java/org/apache/parquet/hadoop/ParquetInputFormat.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/parquet-hadoop/README.md b/parquet-hadoop/README.md
index fc12a57f2..b0350b881 100644
--- a/parquet-hadoop/README.md
+++ b/parquet-hadoop/README.md
@@ -507,7 +507,7 @@ If `false`, key material is stored in separate new files,
created in the same fo
**Description:** Flag to enable use of the FileSystem Vector IO API on Hadoop
releases which support the feature.
If `true` then an attempt will be made to dynamically load the relevant
classes;
if not found then the library will use the classic non-vectored reads: it is
safe to enable this option on older releases.
-**Default value:** `false`
+**Default value:** `true`
---
diff --git
a/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetInputFormat.java
b/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetInputFormat.java
index 744417116..8e05d49bd 100644
---
a/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetInputFormat.java
+++
b/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetInputFormat.java
@@ -170,7 +170,7 @@ public class ParquetInputFormat<T> extends
FileInputFormat<Void, T> {
/**
* Default value of parquet.hadoop.vectored.io.enabled is {@value}.
*/
- public static final boolean HADOOP_VECTORED_IO_DEFAULT = false;
+ public static final boolean HADOOP_VECTORED_IO_DEFAULT = true;
public static void setTaskSideMetaData(Job job, boolean taskSideMetadata) {
ContextUtil.getConfiguration(job).setBoolean(TASK_SIDE_METADATA,
taskSideMetadata);