Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
  • Loading branch information
bharath-techie committed Oct 16, 2024
1 parent 9238f17 commit 537f19c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ public void build(
String dimension = dimensionsSplitOrder.get(i).getField();
FieldInfo dimensionFieldInfo = writeState.fieldInfos.fieldInfo(dimension);
if (dimensionFieldInfo == null) {
// TODO : make this better
dimensionFieldInfo = getFieldInfo(dimension, dimensionsSplitOrder.get(i).getDocValuesType());
}
dimensionReaders[i] = getSequentialDocValuesIterator(
Expand All @@ -265,6 +264,7 @@ public void build(

if (dimensionsSplitOrder.get(i).getDocValuesType().equals(DocValuesType.SORTED_SET)) {
// This is needed as we need to write the ordinals and also the bytesRef associated with it
// as part of star tree doc values file formats
sortedSetDocValuesMap.put(
dimensionsSplitOrder.get(i).getField(),
fieldProducerMap.get(dimensionFieldInfo.name).getSortedSet(dimensionFieldInfo)
Expand Down Expand Up @@ -400,7 +400,7 @@ public void build(

appendDocumentsToStarTree(starTreeDocumentIterator);
int numStarTreeDocument = numStarTreeDocs;
logger.info("Generated star tree docs : [{}] from segment docs : [{}]", numStarTreeDocument, numSegmentStarTreeDocument);
logger.debug("Generated star tree docs : [{}] from segment docs : [{}]", numStarTreeDocument, numSegmentStarTreeDocument);

if (numStarTreeDocs == 0) {
// serialize the star tree data
Expand All @@ -410,7 +410,7 @@ public void build(

constructStarTree(rootNode, 0, numStarTreeDocs);
int numStarTreeDocumentUnderStarNode = numStarTreeDocs - numStarTreeDocument;
logger.info(
logger.debug(
"Finished constructing star-tree, got [ {} ] tree nodes and [ {} ] starTreeDocument under star-node",
numStarTreeNodes,
numStarTreeDocumentUnderStarNode
Expand Down

0 comments on commit 537f19c

Please sign in to comment.