This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch fd-bump-thrift
in repository https://gitbox.apache.org/repos/asf/parquet-format.git

commit da53550c0c1f97ae057dd50579d139f8dddb5497
Author: Fokko Driesprong <[email protected]>
AuthorDate: Thu Apr 13 16:16:59 2023 +0200

    PARQUET-2270: Bump Thrift to 0.16.0
    
    In line with Parquet-mr
---
 .github/workflows/test.yml                                    |  4 ++--
 pom.xml                                                       |  2 +-
 .../java/org/apache/parquet/format/InterningProtocol.java     | 11 +++++++++++
 3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0622635..76767e7 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -40,8 +40,8 @@ jobs:
           sudo apt-get update -qq
           sudo apt-get install -qq protobuf-compiler
           sudo apt-get install -qq libboost-dev libboost-test-dev 
libboost-program-options-dev libevent-dev automake libtool flex bison 
pkg-config g++ libssl-dev
-          wget -qO- 
https://archive.apache.org/dist/thrift/0.14.1/thrift-0.14.1.tar.gz | tar zxf -
-          cd thrift-0.14.1/
+          wget -qO- 
https://archive.apache.org/dist/thrift/0.16.0/thrift-0.16.0.tar.gz | tar zxf -
+          cd thrift-0.16.0/
           chmod +x ./configure
           ./configure --disable-libs
           sudo make install
diff --git a/pom.xml b/pom.xml
index 20671a2..8110625 100644
--- a/pom.xml
+++ b/pom.xml
@@ -87,7 +87,7 @@
     <maven.compiler.target>1.8</maven.compiler.target>
     <shade.prefix>shaded.parquet</shade.prefix>
     <thrift.executable>thrift</thrift.executable>
-    <thrift.version>0.14.1</thrift.version>
+    <thrift.version>0.16.0</thrift.version>
     <thrift-maven-plugin.version>0.10.0</thrift-maven-plugin.version>
   </properties>
 
diff --git a/src/main/java/org/apache/parquet/format/InterningProtocol.java 
b/src/main/java/org/apache/parquet/format/InterningProtocol.java
index 90a1170..6db426b 100644
--- a/src/main/java/org/apache/parquet/format/InterningProtocol.java
+++ b/src/main/java/org/apache/parquet/format/InterningProtocol.java
@@ -20,6 +20,7 @@
 package org.apache.parquet.format;
 
 import java.nio.ByteBuffer;
+import java.util.UUID;
 
 import org.apache.thrift.TException;
 import org.apache.thrift.protocol.TField;
@@ -127,6 +128,11 @@ public class InterningProtocol extends TProtocol {
     delegate.writeI64(i64);
   }
 
+  @Override
+  public void writeUuid(UUID uuid) throws TException {
+    delegate.writeUuid(uuid);
+  }
+
   public void writeDouble(double dub) throws TException {
     delegate.writeDouble(dub);
   }
@@ -211,6 +217,11 @@ public class InterningProtocol extends TProtocol {
     return delegate.readI64();
   }
 
+  @Override
+  public UUID readUuid() throws TException {
+    return delegate.readUuid();
+  }
+
   public double readDouble() throws TException {
     return delegate.readDouble();
   }

Reply via email to