From d8093101f804712e035e57e89c8e9e050562f379 Mon Sep 17 00:00:00 2001 From: caiconghui <55968745+caiconghui@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:47:28 +0800 Subject: [PATCH] [fix](repository) fix NullPointerException when execute create repository statement without properties (#30972) (#31056) bp #30972 Co-authored-by: caiconghui1 --- fe/fe-core/src/main/cup/sql_parser.cup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/cup/sql_parser.cup b/fe/fe-core/src/main/cup/sql_parser.cup index bee869915a2383..51aae6ad6afa01 100644 --- a/fe/fe-core/src/main/cup/sql_parser.cup +++ b/fe/fe-core/src/main/cup/sql_parser.cup @@ -3145,7 +3145,7 @@ key_value_map ::= opt_properties ::= {: - RESULT = null; + RESULT = Maps.newHashMap(); :} | properties:properties {: @@ -3155,7 +3155,7 @@ opt_properties ::= opt_ext_properties ::= {: - RESULT = null; + RESULT = Maps.newHashMap(); :} | KW_BROKER properties:properties {: