From 96f637cfc8b80579ff4dae3914e896ee79334153 Mon Sep 17 00:00:00 2001 From: wypb Date: Thu, 23 May 2024 17:53:25 +0800 Subject: [PATCH] [native] Fix protocol::FileFormat::ORC mapping to use dwio::common::FileFormat::ORC Currently, Prestissimo's toVeloxFileFormat method maps the ORC file format to Velox's DWRF file format, and an error will occur when reading the Iceberg table in the ORC file format. --- .../presto_cpp/main/types/PrestoToVeloxConnector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presto-native-execution/presto_cpp/main/types/PrestoToVeloxConnector.cpp b/presto-native-execution/presto_cpp/main/types/PrestoToVeloxConnector.cpp index 030dde7873ee0..858cbd8b18c0c 100644 --- a/presto-native-execution/presto_cpp/main/types/PrestoToVeloxConnector.cpp +++ b/presto-native-execution/presto_cpp/main/types/PrestoToVeloxConnector.cpp @@ -88,7 +88,7 @@ dwio::common::FileFormat toVeloxFileFormat( dwio::common::FileFormat toVeloxFileFormat( const presto::protocol::FileFormat format) { if (format == protocol::FileFormat::ORC) { - return dwio::common::FileFormat::DWRF; + return dwio::common::FileFormat::ORC; } else if (format == protocol::FileFormat::PARQUET) { return dwio::common::FileFormat::PARQUET; }