Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala Cassandra幻象中的多个Order By子句_Scala_Cassandra_Phantom Dsl - Fatal编程技术网

Scala Cassandra幻象中的多个Order By子句

Scala Cassandra幻象中的多个Order By子句,scala,cassandra,phantom-dsl,Scala,Cassandra,Phantom Dsl,我使用phantom v1.5.0进行了一个查询,该查询具有多个orderBy子句,因为orderBy函数采用了一个或多个OrderingConditions 在1.11.0(实际上是1.8.0)的更新中,查询API更改为只允许一个排序条件。当我尝试在SelectQuery上链接orderBy时,第一个orderBy返回的SelectQuery上出现以下错误: Cannot prove that com.websudos.phantom.builder.Ordered =:= com.websu

我使用phantom v1.5.0进行了一个查询,该查询具有多个orderBy子句,因为orderBy函数采用了一个或多个
OrderingCondition
s

在1.11.0(实际上是1.8.0)的更新中,查询API更改为只允许一个排序条件。当我尝试在
SelectQuery
上链接
orderBy
时,第一个
orderBy
返回的
SelectQuery
上出现以下错误:

Cannot prove that com.websudos.phantom.builder.Ordered =:= com.websudos.phantom.builder.Unordered
显然,有序不等于无序,但也似乎意味着只能按一列总数排序


如何向新的幻影查询API添加多个
orderBy
s?

这是由于库本身的实现错误造成的。该问题已在幻影1.13.0中解决

在一条语句中指定多个排序子句的方法很简单:

Table.select.where(_.a eqs "test").orderBy(_.col1 asc, _.col2 desc, ..)