Calcite 语法 支持哪些mysql中的函数,比如mysql的date_formart、left函数等
你这边是查询的 MySQL 数据库对吧,多少版本的,我试下看看
是查询的mysql,我的mysql版本是5.6.23-72.1
我测试了下确实是没法通过,我反馈下哈。
先用这个临时解决一下:
SELECT
	consume_type,
	SUBSTRING( consume_type FROM 1 FOR 2 ) AS new_str
FROM
	transactions 
	LIMIT 4;
---
consume_type  new_str
酒水	          酒水
粮油副食	      粮油
粮油副食	      粮油
生活电器	      生活
            
