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

tidb runtime error with max funtion #24754

Closed
dbsid opened this issue May 19, 2021 · 2 comments
Closed

tidb runtime error with max funtion #24754

dbsid opened this issue May 19, 2021 · 2 comments
Assignees
Labels
severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@dbsid
Copy link
Contributor

dbsid commented May 19, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

runs fine

SELECT repo, commit
FROM (
  SELECT repo, commit, COUNT(1) AS c
  FROM ci_data
  WHERE status="FAILURE"
  GROUP BY repo, commit, job, date(time)
) s

with max function time error:

SELECT repo, commit, MAX(c) max_cnt
FROM (
  SELECT repo, commit, COUNT(1) AS c
  FROM ci_data
  WHERE status="FAILURE"
  GROUP BY repo, commit, job, date(time)
) s

image

1. Minimal reproduce step (Required)

reproduced internal database

2. What did you expect to see? (Required)

no runtime error

3. What did you see instead (Required)

runtime error

4. What is your TiDB version? (Required)

master

<!-- Paste the output of SELECT tidb_version() -->

| Release Version: v4.0.0-beta.2-2487-g70f7884
Edition: Community
Git Commit Hash: 70f78847f463d9f1f4f6a8f329749762a71033ed
Git Branch: release-5.0-734084fa2bf2
UTC Build Time: 2021-05-10 14:50:14
GoVersion: go1.16
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.03 sec)
@dbsid dbsid added the type/bug The issue is confirmed as a bug. label May 19, 2021
@dbsid
Copy link
Contributor Author

dbsid commented May 24, 2021

duplicate as #23844, closing

@dbsid dbsid closed this as completed May 24, 2021
@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

4 participants