apache / apache/gluten

[CH] The time zone is error when using the timestamp type as the partition column

Open
#8,093 0 comments 0 reactions 0 assignees View on GitHub
bug triage
Dominant language
Scala
Stars
1.6k
Forks
657
Avg merge
2d 14h
Merged PRs (30d)
80

Description

### Backend

CH (ClickHouse)

### Bug description

The time zone is error when using the timestamp type as the partition column:
```
create table part_by_timestamp (
p timestamp
) using parquet
partitioned by (p);
```

```
insert into table part_by_timestamp
values (TIMESTAMP '2022-01-01 00:01:20');
```

```
!== Correct Answer - 1 == == Gluten Answer - 1 ==
struct<> struct<>
![2022-01-01 00:01:20.0] [2022-01-01 08:01:20.0]
```

### Spark version

None

### Spark configurations

_No response_

### System information

_No response_

### Relevant logs

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.