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

Column information in error message is missing. #11145

Closed
SunRunAway opened this issue Jul 9, 2019 · 1 comment · Fixed by #11406
Closed

Column information in error message is missing. #11145

SunRunAway opened this issue Jul 9, 2019 · 1 comment · Fixed by #11406
Assignees
Labels
component/expression help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/bug The issue is confirmed as a bug. type/compatibility

Comments

@SunRunAway
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
SELECT  `col_float_signed` AS field1  FROM `table50_int_autoinc` GROUP BY GET_FORMAT( DATETIME, 'ISO' );
  1. What did you expect to see?
ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'randgen_test.table50_int_autoinc.col_float_signed' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
  1. What did you see instead?

The column information is missing.

ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column '' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

fdbc149

@SunRunAway SunRunAway added type/bug The issue is confirmed as a bug. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/compatibility component/expression and removed component/expression labels Jul 9, 2019
@gaoxingliang
Copy link
Contributor

I'm working on this issue. and I will add some UT cases for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/bug The issue is confirmed as a bug. type/compatibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants