Clickhouse toYYYYMM gives diffent month of the date

46 Views Asked by At

Running query in clickhouse, select log_time, toYYYYMM(log_time), toYYYYMMDD(log_time) from new_log limit 1 and it outputs '2024-02-29 16:00:00', '202403','20240301'. The date month is Febrary but toYYYYMM gives the March. btw: My timezone is +8.

enter image description here

2024/03/21:

Runs the above select statement in clickhouse-client and it gives different output. enter image description here

So the problem should be related with client tool dbeaver. Thanks @vladimir for your answer.

0

There are 0 best solutions below