You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IllegalStateException: Duplicate key myValue (attempted merging values INT and INT)
at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:133)
at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180)
at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1675)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
at io.krakens.grok.api.Converter.getGroupTypes(Converter.java:85)
at io.krakens.grok.api.Grok.<init>(Grok.java:72)
at io.krakens.grok.api.GrokCompiler.compile(GrokCompiler.java:197)
at io.krakens.grok.api.GrokCompiler.compile(GrokCompiler.java:124)
at io.krakens.grok.api.GrokCompiler.compile(GrokCompiler.java:120)
However, when I try:
"%{NUMBER:myValue} %{NUMBER:myValue}"
It works just fine.
So maybe a different version of toMap needs to be called, maybe the one that takes BinaryOperator<U> mergeFunction as the third argument? 🤔 Not sure what merge function to pass it, though.
The text was updated successfully, but these errors were encountered:
When I try to compile the following with
0.1.9
:I get:
However, when I try:
It works just fine.
So maybe a different version of
toMap
needs to be called, maybe the one that takesBinaryOperator<U> mergeFunction
as the third argument? 🤔 Not sure what merge function to pass it, though.The text was updated successfully, but these errors were encountered: