Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

lightning: fix parquet parser for decimal type (#1272) #1277

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix time when IsAdjustedToUTC is false
  • Loading branch information
glorv authored and ti-chi-bot committed Jun 24, 2021
commit 5015cffbf5251fd298f9485b9b48383a8c2a59ef
4 changes: 2 additions & 2 deletions pkg/lightning/mydump/parquet_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,9 @@ func formatTime(v int64, units *parquet.TimeUnit, format, utcFormat string, utc
sec = v / 1e9
nsec = v % 1e9
}
t := time.Unix(sec, nsec)
t := time.Unix(sec, nsec).UTC()
if utc {
return t.UTC().Format(utcFormat)
return t.Format(utcFormat)
}
return t.Format(format)
}
Expand Down