You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "yspyhp (via GitHub)" <gi...@apache.org> on 2023/03/10 09:35:17 UTC

[GitHub] [incubator-hugegraph] yspyhp opened a new issue, #2158: 关于排序时空值的问题

yspyhp opened a new issue, #2158:
URL: https://github.com/apache/incubator-hugegraph/issues/2158

   ### Problem Type (问题类型)
   
   gremlin (结果不合预期)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.0.0 (Apache Release Version)
   - Backend: RocksDB x nodes, HDD or SSD 
   - OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x 
   - Data Size:  xx vertices, xx edges <!-- (like 1000W 点, 9000W 边) -->
   
   
   ### Your Question (问题描述)
   
   g.V().hasLabel('school').or(has('alias', ConditionP.contains('985')),has('abels', ConditionP.contains('985'))).order().by('rank').values('name')
   求问
   根据rank正序排序时,rank为空的数据排在了前边,希望把为空的数据排在后边,应该怎么写?
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   _No response_
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] javeme commented on issue #2158: 关于排序时空值的问题

Posted by "javeme (via GitHub)" <gi...@apache.org>.
javeme commented on issue #2158:
URL: https://github.com/apache/incubator-hugegraph/issues/2158#issuecomment-1463756015

   please try `order().by(choose(values('rank'), identity(), constant(MAX_INT)))`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] yspyhp commented on issue #2158: 关于排序时空值的问题

Posted by "yspyhp (via GitHub)" <gi...@apache.org>.
yspyhp commented on issue #2158:
URL: https://github.com/apache/incubator-hugegraph/issues/2158#issuecomment-1463807070

   成功了,多谢!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] yspyhp closed issue #2158: 关于排序时空值的问题

Posted by "yspyhp (via GitHub)" <gi...@apache.org>.
yspyhp closed issue #2158: 关于排序时空值的问题
URL: https://github.com/apache/incubator-hugegraph/issues/2158


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org