From f06c13abcdba525a87f8d0dc39240a8d91a1aadd Mon Sep 17 00:00:00 2001 From: Maxton Huff Date: Fri, 26 Mar 2021 16:11:16 -0500 Subject: [PATCH] alter incorrect type error message --- executor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/executor.go b/executor.go index cfc5acfff..7b95cda29 100644 --- a/executor.go +++ b/executor.go @@ -20,7 +20,6 @@ import ( "fmt" "math" "math/bits" - "reflect" "sort" "strings" "sync" @@ -1316,7 +1315,7 @@ func (e *executor) executePercentile(ctx context.Context, qcx *Qcx, index string nthFloat = float64(nthArg) OK = ok default: - return ValCount{}, errors.Errorf("Percentile(): invalid nth type (%f), should be int64 or pql.Decimal", reflect.TypeOf(c.Args["nth"])) + return ValCount{}, errors.Errorf("Percentile(): invalid nth type (%T), should be int64 or pql.Decimal", c.Args["nth"]) } if OK { if nthFloat < 0 || nthFloat > 100.0 {