diff --git a/pkg/s3select/sql/value.go b/pkg/s3select/sql/value.go index 8b6fde148..d2983be37 100644 --- a/pkg/s3select/sql/value.go +++ b/pkg/s3select/sql/value.go @@ -97,7 +97,7 @@ func (v *Value) Repr() string { case typeBool, typeInt, typeFloat: return fmt.Sprintf("%v:%s", v.value, v.GetTypeString()) case typeTimestamp: - return fmt.Sprintf("%s:TIMESTAMP", v.value.(*time.Time)) + return fmt.Sprintf("%s:TIMESTAMP", v.value.(time.Time)) case typeString: return fmt.Sprintf("\"%s\":%s", v.value.(string), v.GetTypeString()) case typeBytes: @@ -335,7 +335,7 @@ func (v *Value) compareOp(op string, a *Value) (res bool, err error) { } boolV, ok1b := v.ToBool() - boolA, ok2b := v.ToBool() + boolA, ok2b := a.ToBool() if ok1b && ok2b { return boolCompare(op, boolV, boolA) }