配置单元服务器在bst时区将Parquet时间戳值推1小时

dgenwo3n  于 2021-06-25  发布在  Hive
关注(0)|答案(1)|浏览(402)

'hdp--3.1.4,包含每小时数据的Parquet时间戳的表,hive server正在将小时数据推入下一个日期示例如下所示,请检查2020年3月29日之前和之后的时间,其中3月29日是bst时间设置,可节省日光'

| 2020-03-22  | 2020-03-22 00:00:59.0  | 2020-03-22 23:59:59.0  |
| 2020-03-23  | 2020-03-23 00:00:59.0  | 2020-03-23 23:59:59.0  |
| 2020-03-24  | 2020-03-24 00:00:59.0  | 2020-03-24 23:59:59.0  |
| 2020-03-25  | 2020-03-25 00:00:59.0  | 2020-03-25 23:59:59.0  |
| 2020-03-26  | 2020-03-26 00:00:59.0  | 2020-03-26 23:59:59.0  |
| 2020-03-27  | 2020-03-27 00:00:59.0  | 2020-03-27 23:59:59.0  |
| 2020-03-28  | 2020-03-28 00:00:59.0  | 2020-03-28 23:59:59.0  |
| 2020-03-29  | 2020-03-29 00:00:59.0  | 2020-03-30 00:59:59.0  |
| 2020-03-30  | 2020-03-30 01:00:59.0  | 2020-03-31 00:59:59.0  |
| 2020-03-31  | 2020-03-31 01:00:59.0  | 2020-04-01 00:59:59.0  |
| 2020-04-01  | 2020-04-01 01:00:59.0  | 2020-04-02 00:59:59.0  |
| 2020-04-02  | 2020-04-02 01:00:59.0  | 2020-04-03 00:59:59.0  |
1sbrub3j

1sbrub3j1#

当写入配置单元中的parquet表时,请确保时间戳值以utc为单位,并将配置单元中的时区设置为与本地时区匹配。

set time zone LOCAL;
 or 
set time zone '+1:00'

相关问题