Skip to content

Commit

Permalink
DRILL-8506: Ignore JSON Elements with Empty Keys
Browse files Browse the repository at this point in the history
  • Loading branch information
cgivre committed Aug 13, 2024
1 parent a05b90d commit 0517feb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ private void parseMember(TokenIterator tokenizer) {
*/
private ElementParser detectValueParser(String key, TokenIterator tokenizer) {
if (key.isEmpty()) {
throw errorFactory().structureError(
"Drill does not allow empty keys in JSON key/value pairs");
logger.warn("Ignoring empty key: {}", key);
return DummyValueParser.INSTANCE;
}
ElementParser fieldParser = onField(key, tokenizer);
if (fieldParser == null) {
Expand Down

0 comments on commit 0517feb

Please sign in to comment.