Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wshwsh12 committed May 17, 2022
1 parent 137c3c6 commit 59d4e60
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions executor/aggfuncs/aggfunc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,10 @@ func distinctUpdateMemDeltaGens(srcChk *chunk.Chunk, dataType *types.FieldType)
switch dataType.GetType() {
case mysql.TypeLonglong:
val = strconv.FormatInt(row.GetInt64(0), 10)
memDelta = aggfuncs.DefInt64Size
case mysql.TypeFloat:
val = strconv.FormatFloat(float64(row.GetFloat32(0)), 'f', 6, 64)
memDelta = aggfuncs.DefFloat64Size
case mysql.TypeDouble:
val = strconv.FormatFloat(row.GetFloat64(0), 'f', 6, 64)
memDelta = aggfuncs.DefFloat64Size
case mysql.TypeNewDecimal:
decimal := row.GetMyDecimal(0)
hash, err := decimal.ToHashKey()
Expand All @@ -190,7 +187,6 @@ func distinctUpdateMemDeltaGens(srcChk *chunk.Chunk, dataType *types.FieldType)
memDelta = 16
case mysql.TypeDuration:
val = strconv.FormatInt(row.GetInt64(0), 10)
memDelta = aggfuncs.DefInt64Size
case mysql.TypeJSON:
jsonVal := row.GetJSON(0)
bytes := make([]byte, 0)
Expand Down

0 comments on commit 59d4e60

Please sign in to comment.