l***@163.com
l***@163.com
  • 发布:2023-11-16 12:11
  • 更新:2023-11-16 12:11
  • 阅读:165

【报Bug】使用JQL 常用运算方法后,再进行distinct(),返回为空值。

分类:uniCloud

产品分类: uniCloud/App

操作步骤:

见BUG 描述

预期结果:

见BUG 描述

实际结果:

见BUG 描述

bug描述:

云函数中定义:
const db = uniCloud.databaseForJQL()

async getRaceYears() {
return await db.collection("table_name").field('substr(col1,0,4) as col_name').distinct().get()

如果不加上distinct(),返回300多条数据,加上distinct()后,返回一条空值。

2023-11-16 12:11 负责人:无 分享
已邀请:

要回复问题请先登录注册