Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit fe60d46

Browse files
author
trzysiek
committed
Cleanup
1 parent baa8be3 commit fe60d46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/parsers/elastic_query_dsl/pancake_aggregation_parser_buckets.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ func (cw *ClickhouseQueryTranslator) parseDateHistogram(aggregation *pancakeAggr
115115
if missingRaw, exists := params["missing"]; exists {
116116
if missing, ok := missingRaw.(string); ok {
117117
dateManager := NewDateManager(cw.Ctx)
118-
if funcName, missingExpr := dateManager.ParseDateUsualFormat(missing, colRef); missingExpr != nil {
119-
field = model.NewFunction("COALESCE", field, model.NewFunction(funcName, missingExpr))
118+
if missingExpr := dateManager.ParseDateUsualFormat(missing, colRef); missingExpr != nil {
119+
field = model.NewFunction("COALESCE", field, missingExpr)
120120
weAddedMissing = true
121121
} else {
122122
logger.ErrorWithCtx(cw.Ctx).Msgf("unknown format of missing in date_histogram: %v. Skipping it.", missing)

0 commit comments

Comments
 (0)