Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task_runs timezone bug #52121

Open
bulolo opened this issue Oct 19, 2024 · 0 comments · May be fixed by #52123
Open

task_runs timezone bug #52121

bulolo opened this issue Oct 19, 2024 · 0 comments · May be fixed by #52123
Labels
type/bug Something isn't working

Comments

@bulolo
Copy link

bulolo commented Oct 19, 2024

  • 数据库时区
SHOW VARIABLES LIKE '%time_zone%';

Variable_name	Value
system_time_zone	Asia/Shanghai
time_zone	Asia/Shanghai
  • 当不加时间过滤条件的时候,时区为0时区
SELECT TASK_NAME,CREATE_TIME FROM `information_schema`.`task_runs` WHERE `TASK_NAME` = 'mv-2554142' ORDER BY `CREATE_TIME` DESC LIMIT 0,10

TASK_NAME	CREATE_TIME
mv-2554142	2024-10-19 02:07:19
  • 当加上时间过滤条件的时候,时区变为东八区
SELECT TASK_NAME,CREATE_TIME FROM `information_schema`.`task_runs` WHERE `TASK_NAME` = 'mv-2554142' AND `CREATE_TIME` >= '2024-10-19 00:00:00' ORDER BY `CREATE_TIME` DESC LIMIT 0,10

TASK_NAME	CREATE_TIME
mv-2554142	2024-10-19 10:08:29
@bulolo bulolo added the type/bug Something isn't working label Oct 19, 2024
@bulolo bulolo changed the title task_runs timezone bug时区问题复现 task_runs timezone bug Oct 19, 2024
@rohitrs1983 rohitrs1983 linked a pull request Oct 20, 2024 that will close this issue
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant