File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ func (f TimeFormat) Decode(v any) (time.Time, error) {
183
183
case float64 :
184
184
return time .UnixMilli (int64 (math .Floor (v ))).UTC (), nil
185
185
case int64 :
186
- return time .UnixMilli (int64 ( v ) ).UTC (), nil
186
+ return time .UnixMilli (v ).UTC (), nil
187
187
default :
188
188
return time.Time {}, util .TimeErr
189
189
}
@@ -200,7 +200,7 @@ func (f TimeFormat) Decode(v any) (time.Time, error) {
200
200
case float64 :
201
201
return time .UnixMicro (int64 (math .Floor (v ))).UTC (), nil
202
202
case int64 :
203
- return time .UnixMicro (int64 ( v ) ).UTC (), nil
203
+ return time .UnixMicro (v ).UTC (), nil
204
204
default :
205
205
return time.Time {}, util .TimeErr
206
206
}
@@ -217,7 +217,7 @@ func (f TimeFormat) Decode(v any) (time.Time, error) {
217
217
case float64 :
218
218
return time .Unix (0 , int64 (math .Floor (v ))).UTC (), nil
219
219
case int64 :
220
- return time .Unix (0 , int64 ( v ) ).UTC (), nil
220
+ return time .Unix (0 , v ).UTC (), nil
221
221
default :
222
222
return time.Time {}, util .TimeErr
223
223
}
Original file line number Diff line number Diff line change @@ -116,5 +116,5 @@ func (cur *seriesCursor) EOF() bool {
116
116
}
117
117
118
118
func (cur * seriesCursor ) RowID () (int64 , error ) {
119
- return int64 ( cur .value ) , nil
119
+ return cur .value , nil
120
120
}
You can’t perform that action at this time.
0 commit comments