From 024a4f047ec19a754292a57a81bb1b25677d5c3d Mon Sep 17 00:00:00 2001 From: Mingyu Chen Date: Fri, 2 Aug 2024 19:11:56 +0800 Subject: [PATCH] [opt](variables) enlarge the default value of max_allowed_packet (#38697) From 1MB to 16MB, same as MySQL 8.4. This is to avoid "Packet for query is too large" error when querying wide table or table with wide column. --- .../src/main/java/org/apache/doris/qe/SessionVariable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java index 51bfdb7ead8668..e1fabc5a16a31e 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java +++ b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java @@ -813,7 +813,7 @@ public class SessionVariable implements Serializable, Writable { // this is used to make c3p0 library happy @VariableMgr.VarAttr(name = MAX_ALLOWED_PACKET) - public int maxAllowedPacket = 1048576; + public int maxAllowedPacket = 16777216; @VariableMgr.VarAttr(name = AUTO_INCREMENT_INCREMENT) public int autoIncrementIncrement = 1;