【发布时间】:2019-04-30 22:20:35
【问题描述】:
我有一个域类,下面是声明:
class Emp{
static mapWith = "cassandra"
String name
Date doj
}
data:
id name doj
1 X 01-01-2010
2 Y 01-20-2012
Cassandra 查询:
select * from emp_schema.emp where doj='01-01-2010';
错误: code=2200 [Invalid query] message="Unable to coerce '01-01-2010' to a formatted date (long)"
【问题讨论】:
-
能否分享一下您要查询的表的定义?