Skip to content

Commit

Permalink
[BugFix] Fix string format in HyperLogLog::to_string (StarRocks#55409)
Browse files Browse the repository at this point in the history
  • Loading branch information
decster authored Feb 7, 2025
1 parent 4be4b5c commit e9229b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/types/hll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ std::string HyperLogLog::to_string() const {
estimate_cardinality(), _type);
case HLL_DATA_SPARSE:
case HLL_DATA_FULL: {
return strings::Substitute("cardinality:$1\ntype:$2", estimate_cardinality(), _type);
return strings::Substitute("cardinality:$0\ntype:$1", estimate_cardinality(), _type);
}
default:
return {};
Expand Down

0 comments on commit e9229b0

Please sign in to comment.