执行JDBC任务报only_full_group_by错误

提问者:帅平 问题分类:大数据
使用linkis-cli 提交jdbc任务,提示GROUP BY clause; sql_mode=only_full_group_by错误
com.webank.wedatasphere.linkis.orchestrator.ecm.exception.ECMPluginErrorException: errCode: 12003 ,desc: uathadoop01:9101_8 Failed  to async get EngineNode MySQLSyntaxErrorException: Expression #6 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'dss_linkis.si.name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by ,ip: uathadoop01 ,port: 9104 ,serviceKind: linkis-cg-entrance
1 个回答
激萌美少女
激萌美少女
这个错误发生在mysql 5.7 版本及以上版本会出现的问题:因为配置严格执行了"SQL92标准",解决办法:
1、进入/etc/mysql目录下修改my.cnf文件 在 [mysqld] 下面添加代码
sql_mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

2、从Linkis 1.1.2版本后已经去掉了该groub by语法,欢迎升级使用
发布于:7个月前 (10-11) IP属地:四川省
我来回答