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

mysql中带有时间的日期筛选条件查询出来的数据跟实际的数据对不上 #1027

Closed
jinfeng202111 opened this issue Mar 17, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jinfeng202111
Copy link

如下图,使用mysql的数据源。因为created_time查询出来后是str类型,不能作为日期范围的筛选条件,因此将其转为日期类型:
image

在可视化中开始分析,created_time虽然也显示出来,但是去掉了时间,因此此时的值是2021-08-04 00:00:00,并不是上图中展示的2021-08-04 16:48:26
image

在下面也可以得到验证:
将created_time的筛选条件设置为2021-08-04 00:00:00到2021-08-04 00:00:00,就可以查出来:
image

将created_time的筛选条件设置为2021-08-04 00:00:01到2021-08-04 23:59:00,就查不出来:
image

@jinfeng202111 jinfeng202111 changed the title 带有时间的日期筛选条件查询出来的数据不准确 带有时间的日期筛选条件查询出来的数据跟实际的数据对不上 Mar 22, 2022
@jinfeng202111 jinfeng202111 changed the title 带有时间的日期筛选条件查询出来的数据跟实际的数据对不上 mysql中带有时间的日期筛选条件查询出来的数据跟实际的数据对不上 Mar 25, 2022
@scottsut scottsut added bug Something isn't working and removed need reproduce labels Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants