Skip to content

[BUG] [Star tree] Nodes with -1 as dimension value gets overriden with star node #15097

@bharath-techie

Description

@bharath-techie

Describe the bug

Documents which has dimensions as '-1' , results in getting overriden with star nodes as star nodes are assigned '-1' when constructing star tree.

[-1,1]
[1,1]
[1,1]

Map<Long, InMemoryTreeNode> children = constructNonStarNodes(startDocId, endDocId, childDimensionId);
children.put((long) ALL, constructStarNode(startDocId, endDocId, childDimensionId));

ALL here is '-1'

Related component

Indexing:Performance

To Reproduce

Add documents with -1 as dimensions when creating star tree

Expected behavior

Documents with -1, null and any values in Long range should work with star tree

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions