Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
trzysiek committed Dec 27, 2024
1 parent e52f4c6 commit 60537e7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions quesma/model/bucket_aggregations/ip_range.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ func (query *IpRange) AggregationType() model.AggregationType {
}

func (query *IpRange) TranslateSqlResponseToJson(rows []model.QueryResultRow) model.JsonMap {
fmt.Println("DUPA", rows)
return nil
}

Expand Down Expand Up @@ -156,7 +155,6 @@ func (query *IpRange) CombinatorGroups() (result []CombinatorGroup) {
// bad requests: both to/from and mask

func (query *IpRange) CombinatorTranslateSqlResponseToJson(subGroup CombinatorGroup, rows []model.QueryResultRow) model.JsonMap {
fmt.Println("SB", subGroup, "ROWS", rows)
if len(rows) == 0 || len(rows[0].Cols) == 0 {
logger.ErrorWithCtx(query.ctx).Msgf("need at least one row and column in ip_range aggregation response, rows: %d, cols: %d", len(rows), len(rows[0].Cols))
return model.JsonMap{}
Expand Down

0 comments on commit 60537e7

Please sign in to comment.