Skip to content

Dictionary exception in BucketsPathConverter #8126

Closed
@gpetrou

Description

@gpetrou

Elastic.Clients.Elasticsearch version: 8.13.5

Elasticsearch version: 8.11

.NET runtime version: 8.0

Operating system version:

Description of the problem including expected versus actual behavior:
Check

_uniquePropertyToType = new Dictionary<string, Type> { { "", typeof(string) }, { "", typeof(IReadOnlyCollection<string>) }, { "", typeof(IReadOnlyDictionary<string, string>) } };
.
It tries to use multiple empty keys and this will eventually lead to Dictionary exceptions when attempting to use the buckets path functionality.
This makes it impossible to use BucketSelectorAggregation.

Steps to reproduce:
1.
2.
3.

Expected behavior
A clear and concise description of what you expected to happen.

Provide ConnectionSettings (if relevant):

Provide DebugInformation (if relevant):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions