Skip to content

Commit

Permalink
22397: Fixes issue with counting nominal values
Browse files Browse the repository at this point in the history
  • Loading branch information
howsohazard committed Dec 11, 2024
1 parent 4ef628d commit 20de66f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Amalgam/SBFDSColumnData.h
Original file line number Diff line number Diff line change
Expand Up @@ -693,12 +693,12 @@ class SBFDSColumnData
inline size_t GetNumUniqueValues(EvaluableNodeImmediateValueType value_type = ENIVT_NULL)
{
if(value_type == ENIVT_NUMBER)
return numberIndices.size();
return sortedNumberValueEntries.size();

if(value_type == ENIVT_STRING_ID)
return stringIdIndices.size();
return stringIdValueEntries.size();

return numberIndices.size() + stringIdIndices.size() + codeIndices.size();
return sortedNumberValueEntries.size() + stringIdIndices.size();
}

//returns the maximum difference between value and any other value for this column
Expand Down

0 comments on commit 20de66f

Please sign in to comment.