From 6e21c5275ba65ebafe80f60f794aad9e8b14a43b Mon Sep 17 00:00:00 2001 From: chenhao7253886 Date: Tue, 22 Jan 2019 10:34:11 +0800 Subject: [PATCH] Fix uncorrect hll type length when creating table --- fe/src/main/cup/sql_parser.cup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fe/src/main/cup/sql_parser.cup b/fe/src/main/cup/sql_parser.cup index e27252b5500f24..df1e1e143f8a3d 100644 --- a/fe/src/main/cup/sql_parser.cup +++ b/fe/src/main/cup/sql_parser.cup @@ -3113,7 +3113,10 @@ type ::= | KW_DECIMAL {: RESULT = ScalarType.createDecimalType(); :} | KW_HLL - {: RESULT = Type.HLL; :} + {: ScalarType type = ScalarType.createHllType(); + type.setAssignedStrLenInColDefinition(); + RESULT = type; + :} ; opt_field_length ::=