Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fe/fe-core/src/main/cup/sql_parser.cup
Original file line number Diff line number Diff line change
Expand Up @@ -3486,7 +3486,7 @@ key_value_map ::=

opt_properties ::=
{:
RESULT = null;
RESULT = Maps.newHashMap();
:}
| properties:properties
{:
Expand All @@ -3496,7 +3496,7 @@ opt_properties ::=

opt_ext_properties ::=
{:
RESULT = null;
RESULT = Maps.newHashMap();
:}
| KW_BROKER properties:properties
{:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public void analyze(Analyzer analyzer) throws UserException {
}

// Set to false only if user set the property "invalid_cache"="false"
invalidCache = !(properties != null && properties.get(INVALID_CACHE).equalsIgnoreCase("false"));
invalidCache = !(properties.get(INVALID_CACHE) != null && properties.get(INVALID_CACHE)
.equalsIgnoreCase("false"));
}

@Override
Expand Down