From 8b176bda6f01cbb5aa209ae88f20f5926282b496 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Thu, 24 Jun 2021 12:09:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20doris=20varchar=20=E4=B8=AD=E6=96=87=20?= =?UTF-8?q?=E5=8D=A0=E4=B8=89=E4=B8=AA=E5=AD=97=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/dataease/service/dataset/ExtractDataService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/dataease/service/dataset/ExtractDataService.java b/backend/src/main/java/io/dataease/service/dataset/ExtractDataService.java index 958098b5e2..61cbf32eb4 100644 --- a/backend/src/main/java/io/dataease/service/dataset/ExtractDataService.java +++ b/backend/src/main/java/io/dataease/service/dataset/ExtractDataService.java @@ -321,10 +321,10 @@ public class ExtractDataService { Column_Fields = Column_Fields + datasetTableField.getDataeaseName() + "` "; switch (datasetTableField.getDeExtractType()) { case 0: - if (datasetTableField.getSize() > 65533) { + if (datasetTableField.getSize() > 65533 || datasetTableField.getSize() * 3 > 65533) { Column_Fields = Column_Fields + "varchar(65533)" + ",`"; } else { - Column_Fields = Column_Fields + "varchar(lenth)".replace("lenth", String.valueOf(datasetTableField.getSize())) + ",`"; + Column_Fields = Column_Fields + "varchar(lenth)".replace("lenth", String.valueOf(datasetTableField.getSize()*3)) + ",`"; } break; case 1: