Skip to content

Commit

Permalink
using set instead of list, apache#15482
Browse files Browse the repository at this point in the history
  • Loading branch information
Pankaj260100 committed Dec 18, 2023
1 parent 1791b6b commit eaede8e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Lists;
import com.google.common.io.Files;
import org.apache.druid.common.config.NullHandling;
Expand Down Expand Up @@ -368,7 +369,7 @@ public void testParseNestedDataSchemaless() throws Exception
InputRow row = transformingReader.read().next();

Assert.assertEquals(
ImmutableList.of(
ImmutableSet.of(
"someOtherId",
"someIntColumn",
"isValid",
Expand All @@ -381,7 +382,7 @@ public void testParseNestedDataSchemaless() throws Exception
"id",
"someBytesColumn"
),
row.getDimensions()
ImmutableSet.copyOf(row.getDimensions())
);

Assert.assertEquals(ImmutableMap.of("bar", "baz"), row.getRaw("foo"));
Expand Down

0 comments on commit eaede8e

Please sign in to comment.