You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
创建一个表格组件。拉一个维度和度量。度量上面作用的函数选择计数。然后保存。
然后点击表头度量上的排序功能报字段找不到。
看了一下是在组装sql的时候。最外层sql group by 和order by 后面的字段增加了view的表别名导致。
例如:
select
COUNT(DATART_VTABLE.is_deleted) as COUNT(is_deleted), DATART_VTABLE.tenant_id
from
(
select
*
from
mirs.t_form_cheson2014cr_visitbase) as DATART_VTABLE
group by DATART_VTABLE.tenant_id
order by DATART_VTABLE.tenant_id, DATART_VTABLE.COUNT(is_deleted)
limit 20 OFFSET 0
生成这样的sql就是错误的。group by 和 order by后面的字段都不能加 DATART_VTABLE。
这个bug 比较致命。影响面非常广。建议赶紧修复。
The text was updated successfully, but these errors were encountered:
Datart Version
1.0.0-alpha.3
创建一个表格组件。拉一个维度和度量。度量上面作用的函数选择计数。然后保存。
然后点击表头度量上的排序功能报字段找不到。
看了一下是在组装sql的时候。最外层sql group by 和order by 后面的字段增加了view的表别名导致。
例如:
select
COUNT(
DATART_VTABLE
.is_deleted
) asCOUNT(is_deleted)
,DATART_VTABLE
.tenant_id
from
(
select
*
from
mirs.t_form_cheson2014cr_visitbase) as
DATART_VTABLE
group by
DATART_VTABLE
.tenant_id
order by
DATART_VTABLE
.tenant_id
,DATART_VTABLE
.COUNT(is_deleted)
limit 20 OFFSET 0
生成这样的sql就是错误的。group by 和 order by后面的字段都不能加
DATART_VTABLE
。这个bug 比较致命。影响面非常广。建议赶紧修复。
The text was updated successfully, but these errors were encountered: