From 00c151974fadcd5034936638e396f64e12c9a7a2 Mon Sep 17 00:00:00 2001 From: ChengJie1053 <18033291053@163.com> Date: Tue, 12 Dec 2023 14:21:04 +0800 Subject: [PATCH] Fix bugs --- .../java/org/apache/linkis/storage/conf/LinkisStorageConf.java | 2 +- .../src/main/java/org/apache/linkis/storage/utils/OrcUtils.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/conf/LinkisStorageConf.java b/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/conf/LinkisStorageConf.java index 58ff80b8c5..7fb5c1b4ac 100644 --- a/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/conf/LinkisStorageConf.java +++ b/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/conf/LinkisStorageConf.java @@ -45,7 +45,7 @@ public class LinkisStorageConf { CommonVars.apply("wds.linkis.resultset.row.max.str", "2m").getValue(); public static final String ENGINE_RESULT_TYPE = - CommonVars.apply("linkis.engine.resultSet.type", ORC, "Result type").getValue(); + CommonVars.apply("linkis.engine.resultSet.type", DOLPHIN, "Result type").getValue(); public static final long ROW_BYTE_MAX_LEN = ByteTimeUtils.byteStringAsBytes(ROW_BYTE_MAX_LEN_STR); diff --git a/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/utils/OrcUtils.java b/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/utils/OrcUtils.java index 8c949a5c5e..72c2f8c355 100644 --- a/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/utils/OrcUtils.java +++ b/linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/utils/OrcUtils.java @@ -40,6 +40,8 @@ public static TypeDescription dataTypeToOrcType(DataType type) { return TypeDescription.createChar().withMaxLength(1024); case StringType: return TypeDescription.createString(); + case LongType: + return TypeDescription.createLong(); case VarcharType: return TypeDescription.createVarchar().withMaxLength(1024); case BooleanType: