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/incubator-paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 218aa1877 [license] Add license to orc copied files
218aa1877 is described below

commit 218aa187744f81f2e9b831134f2f85db4ab94011
Author: Jingsong <[email protected]>
AuthorDate: Wed Mar 20 18:01:24 2024 +0800

    [license] Add license to orc copied files
---
 LICENSE                                                       |  8 ++++++++
 .../src/main/java/org/apache/orc/CompressionKind.java         |  7 +++++++
 paimon-format/src/main/java/org/apache/orc/OrcConf.java       | 11 ++++++++++-
 paimon-format/src/main/java/org/apache/orc/OrcFile.java       | 11 ++++++++++-
 .../src/main/java/org/apache/orc/impl/PhysicalFsWriter.java   | 11 ++++++++++-
 .../src/main/java/org/apache/orc/impl/WriterImpl.java         |  7 +++++++
 .../src/main/java/org/apache/orc/impl/ZstdCodec.java          | 11 ++++++++++-
 7 files changed, 62 insertions(+), 4 deletions(-)

diff --git a/LICENSE b/LICENSE
index eb317b661..813296254 100644
--- a/LICENSE
+++ b/LICENSE
@@ -255,6 +255,14 @@ from http://iceberg.apache.org/ version 1.3.0
 paimon-hive/paimon-hive-common/src/test/resources/hive-schema-3.1.0.derby.sql
 from https://hive.apache.org/ version 3.1.0
 
+paimon-format/src/main/java/org/apache/orc/impl/PhysicalFsWriter.java
+paimon-format/src/main/java/org/apache/orc/impl/WriterImpl.java
+paimon-format/src/main/java/org/apache/orc/impl/ZstdCodec.java
+paimon-format/src/main/java/org/apache/orc/CompressionKind.java
+paimon-format/src/main/java/org/apache/orc/OrcConf.java
+paimon-format/src/main/java/org/apache/orc/OrcFile.java
+from https://orc.apache.org/ version 2.0
+
 MIT License
 -----------
 
diff --git a/paimon-format/src/main/java/org/apache/orc/CompressionKind.java 
b/paimon-format/src/main/java/org/apache/orc/CompressionKind.java
index 9841f5a29..84de443a4 100644
--- a/paimon-format/src/main/java/org/apache/orc/CompressionKind.java
+++ b/paimon-format/src/main/java/org/apache/orc/CompressionKind.java
@@ -18,8 +18,15 @@
 
 package org.apache.orc;
 
+/* This file is based on source code from the ORC Project 
(http://orc.apache.org/), licensed by the Apache
+ * Software Foundation (ASF) under the Apache License, Version 2.0. See the 
NOTICE file distributed with this work for
+ * additional information regarding copyright ownership. */
+
 /**
  * An enumeration that lists the generic compression algorithms that can be 
applied to ORC files.
+ *
+ * <p>NOTE: The file was copied and modified to support zstd-jni. This feature 
is only supported in
+ * ORC 2.0, but 2.0 only supports JDK17. We need to support JDK8.
  */
 public enum CompressionKind {
     NONE,
diff --git a/paimon-format/src/main/java/org/apache/orc/OrcConf.java 
b/paimon-format/src/main/java/org/apache/orc/OrcConf.java
index 2e1507eed..6aa357868 100644
--- a/paimon-format/src/main/java/org/apache/orc/OrcConf.java
+++ b/paimon-format/src/main/java/org/apache/orc/OrcConf.java
@@ -25,7 +25,16 @@ import java.util.ArrayList;
 import java.util.List;
 import java.util.Properties;
 
-/** Define the configuration properties that Orc understands. */
+/* This file is based on source code from the ORC Project 
(http://orc.apache.org/), licensed by the Apache
+ * Software Foundation (ASF) under the Apache License, Version 2.0. See the 
NOTICE file distributed with this work for
+ * additional information regarding copyright ownership. */
+
+/**
+ * Define the configuration properties that Orc understands.
+ *
+ * <p>NOTE: The file was copied and modified to support zstd-jni. This feature 
is only supported in
+ * ORC 2.0, but 2.0 only supports JDK17. We need to support JDK8.
+ */
 public enum OrcConf {
     STRIPE_SIZE(
             "orc.stripe.size",
diff --git a/paimon-format/src/main/java/org/apache/orc/OrcFile.java 
b/paimon-format/src/main/java/org/apache/orc/OrcFile.java
index a903ba9e7..f482174ed 100644
--- a/paimon-format/src/main/java/org/apache/orc/OrcFile.java
+++ b/paimon-format/src/main/java/org/apache/orc/OrcFile.java
@@ -42,7 +42,16 @@ import java.util.List;
 import java.util.Map;
 import java.util.Properties;
 
-/** Contains factory methods to read or write ORC files. */
+/* This file is based on source code from the ORC Project 
(http://orc.apache.org/), licensed by the Apache
+ * Software Foundation (ASF) under the Apache License, Version 2.0. See the 
NOTICE file distributed with this work for
+ * additional information regarding copyright ownership. */
+
+/**
+ * Contains factory methods to read or write ORC files.
+ *
+ * <p>NOTE: The file was copied and modified to support zstd-jni. This feature 
is only supported in
+ * ORC 2.0, but 2.0 only supports JDK17. We need to support JDK8.
+ */
 public class OrcFile {
     private static final Logger LOG = LoggerFactory.getLogger(OrcFile.class);
     public static final String MAGIC = "ORC";
diff --git 
a/paimon-format/src/main/java/org/apache/orc/impl/PhysicalFsWriter.java 
b/paimon-format/src/main/java/org/apache/orc/impl/PhysicalFsWriter.java
index f887e860a..aab908fc7 100644
--- a/paimon-format/src/main/java/org/apache/orc/impl/PhysicalFsWriter.java
+++ b/paimon-format/src/main/java/org/apache/orc/impl/PhysicalFsWriter.java
@@ -44,7 +44,16 @@ import java.util.List;
 import java.util.Map;
 import java.util.TreeMap;
 
-/** A orc PhysicalFsWriter. */
+/* This file is based on source code from the ORC Project 
(http://orc.apache.org/), licensed by the Apache
+ * Software Foundation (ASF) under the Apache License, Version 2.0. See the 
NOTICE file distributed with this work for
+ * additional information regarding copyright ownership. */
+
+/**
+ * An orc PhysicalFsWriter.
+ *
+ * <p>NOTE: The file was copied and modified to support zstd-jni. This feature 
is only supported in
+ * ORC 2.0, but 2.0 only supports JDK17. We need to support JDK8.
+ */
 public class PhysicalFsWriter implements PhysicalWriter {
     private static final Logger LOG = 
LoggerFactory.getLogger(PhysicalFsWriter.class);
 
diff --git a/paimon-format/src/main/java/org/apache/orc/impl/WriterImpl.java 
b/paimon-format/src/main/java/org/apache/orc/impl/WriterImpl.java
index bbbc8f031..4249c8bd3 100644
--- a/paimon-format/src/main/java/org/apache/orc/impl/WriterImpl.java
+++ b/paimon-format/src/main/java/org/apache/orc/impl/WriterImpl.java
@@ -62,6 +62,10 @@ import java.util.SortedMap;
 import java.util.TimeZone;
 import java.util.TreeMap;
 
+/* This file is based on source code from the ORC Project 
(http://orc.apache.org/), licensed by the Apache
+ * Software Foundation (ASF) under the Apache License, Version 2.0. See the 
NOTICE file distributed with this work for
+ * additional information regarding copyright ownership. */
+
 /**
  * An ORC file writer. The file is divided into stripes, which is the natural 
unit of work when
  * reading. Each stripe is buffered in memory until the memory reaches the 
stripe size and then it
@@ -76,6 +80,9 @@ import java.util.TreeMap;
  *
  * <p>Caveat: the MemoryManager is created during WriterOptions create, that 
has to be confined to a
  * single thread as well.
+ *
+ * <p>NOTE: The file was copied and modified to support zstd-jni. This feature 
is only supported in
+ * ORC 2.0, but 2.0 only supports JDK17. We need to support JDK8.
  */
 public class WriterImpl implements WriterInternal, MemoryManager.Callback {
 
diff --git a/paimon-format/src/main/java/org/apache/orc/impl/ZstdCodec.java 
b/paimon-format/src/main/java/org/apache/orc/impl/ZstdCodec.java
index 2eeb723c4..6803053dd 100644
--- a/paimon-format/src/main/java/org/apache/orc/impl/ZstdCodec.java
+++ b/paimon-format/src/main/java/org/apache/orc/impl/ZstdCodec.java
@@ -26,7 +26,16 @@ import org.apache.orc.CompressionKind;
 import java.io.IOException;
 import java.nio.ByteBuffer;
 
-/** orc ZstdCodec. */
+/* This file is based on source code from the ORC Project 
(http://orc.apache.org/), licensed by the Apache
+ * Software Foundation (ASF) under the Apache License, Version 2.0. See the 
NOTICE file distributed with this work for
+ * additional information regarding copyright ownership. */
+
+/**
+ * orc ZstdCodec.
+ *
+ * <p>NOTE: The file was copied and modified to support zstd-jni. This feature 
is only supported in
+ * ORC 2.0, but 2.0 only supports JDK17. We need to support JDK8.
+ */
 public class ZstdCodec implements CompressionCodec, DirectDecompressionCodec {
     private ZstdOptions zstdOptions = null;
     private ZstdCompressCtx zstdCompressCtx = null;

Reply via email to