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

create table with sql ,there is a bug #9148

Closed
introspection3 opened this issue Jan 22, 2019 · 4 comments
Closed

create table with sql ,there is a bug #9148

introspection3 opened this issue Jan 22, 2019 · 4 comments
Labels
type/question The issue belongs to a question.

Comments

@introspection3
Copy link

[SQL]CREATE TABLE IF NOT EXISTS AA (
PrimaryKey bigint(20) NOT NULL AUTO_INCREMENT,
Mac varchar(50) CHARACTER SET utf8 NOT NULL,
StartDateTimeTicks bigint(20) NOT NULL,
IsMerged tinyint(1) NOT NULL,
MvcUserId int(11) NOT NULL,
Marked tinyint(1) NOT NULL,
NodeName varchar(200) CHARACTER SET utf8 DEFAULT NULL,
Id varchar(36) CHARACTER SET utf8 NOT NULL,
FirstRequestId varchar(100) CHARACTER SET utf8 DEFAULT NULL,
IsFirstRequest tinyint(1) NOT NULL,
ParentId varchar(100) CHARACTER SET utf8 DEFAULT NULL,
Host varchar(200) CHARACTER SET utf8 NOT NULL,
HostIp varchar(200) CHARACTER SET utf8 NOT NULL,
RunningIntantanceName varchar(200) CHARACTER SET utf8 NOT NULL,
ProjectType int(11) NOT NULL,
Location varchar(200) CHARACTER SET utf8 NOT NULL,
StartDateTime datetime NOT NULL,
EndDateTime datetime NOT NULL,
UsedTime double NOT NULL,
IsEnd tinyint(1) NOT NULL,
IsSuccess tinyint(1) NOT NULL,
RequestMethodType varchar(50) CHARACTER SET utf8 NOT NULL,
ClientRealIp varchar(100) CHARACTER SET utf8 DEFAULT NULL,
Parameters longtext CHARACTER SET utf8 DEFAULT NULL,
Headers longtext CHARACTER SET utf8 DEFAULT NULL,
PRIMARY KEY (PrimaryKey),
UNIQUE KEY AA_Id_Unique_Index (Id) USING HASH,
KEY AA_Location_Index (Location) USING HASH,
KEY AA_UsedTime_Index (UsedTime) USING HASH,
KEY AA_NodeName_Index (NodeName) USING HASH,
KEY AA_FirstRequestId_Index (FirstRequestId) USING HASH,
KEY AA_BUG_Index (Location,NodeName,StartDateTime) USING HASH
) DEFAULT CHARSET=utf8;
受影响的行: 0
时间: 0.009s

[Err] 1055 - Expression #1 of ORDER BY 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

@rla
Copy link

rla commented Jan 22, 2019

That error does not seem to be related to the table definition. It likely comes from a query that uses a GROUP BY expression. Usually it raises when you select non-aggregate columns that are not itself in the GROUP BY expression.

@introspection3
Copy link
Author

but there is no "group by"

@tiancaiamao
Copy link
Contributor

Could you provide more details about the error in the tidb log?
@564064202

@tiancaiamao tiancaiamao added the type/question The issue belongs to a question. label Jan 25, 2019
@wjhuang2016
Copy link
Member

Close because this issue is no longer active, reopen it after we receive the reply from @564064202 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question The issue belongs to a question.
Projects
None yet
Development

No branches or pull requests

4 participants