doris icon indicating copy to clipboard operation
doris copied to clipboard

[Bug] jdbc catalog table contains keywords 'desc',query error

Open VanYue opened this issue 2 years ago • 1 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Version

Doris 2.0.4

What's Wrong?

1、MySQL 表 CREATE TABLE qwzs.qwzs_account_option_log ( id int(10) unsigned NOT NULL AUTO_INCREMENT, account_id int(10) unsigned NOT NULL DEFAULT '0' COMMENT '账号id', type tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '类型', quit_reason int(10) NOT NULL DEFAULT '0' COMMENT '退出原因', create_time int(10) unsigned NOT NULL DEFAULT '0' COMMENT '记录时间', relate_id int(10) unsigned NOT NULL DEFAULT '0' COMMENT '关联id', desc varchar(100) NOT NULL DEFAULT '' COMMENT '描述', PRIMARY KEY (id), KEY idx_account_id (account_id) ) ENGINE=InnoDB AUTO_INCREMENT=24738 DEFAULT CHARSET=utf8mb4 COMMENT='账号操作明细'

2、Doris Catalog查询报错 select * FROM jdbc_mysql.qwzs.qwzs_account_option_log where id > 7000000 and desc like '%涉嫌%' bug

What You Expected?

Query Sucess

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

VanYue avatar Mar 13 '24 09:03 VanYue

#29854 fix it

zy-kkk avatar Mar 13 '24 14:03 zy-kkk