select
a."member_num", b."member_num_tb", a."member_num" / b."member_num_tb"
from
(
select
count(distinct mobile) as "member_num"
,'week' as "dtype"
from member
where dweek <= '18.06.04~18.06.10'
) as a
left outer join
(
select
count(distinct mobile) as "member_num_tb"
,'week' as "dtype"
from member
where dweek_tb <= '18.06.04~18.06.10'
) as b on a."dtype" = b."dtype"
That the right side of the BinaryTupleExpression owns columns is not supported for / while executing SQL:
"select a."member_num", b."member_num_tb", a."member_num" / b."member_num_tb" from ( select count(distinct mobile) as "member_num" ,'week' as "dtype" from member where dweek <= '18.06.04~18.06.10' ) as a left outer join ( select count(distinct mobile) as "member_num_tb" ,'week' as "dtype" from member where dweek_tb <= '18.06.04~18.06.10' ) as b on a."dtype" = b."dtype" "
请问这是是什么原因啊?
1
zog 2018-08-06 16:17:18 +08:00
你用的什么版本 Kylin?
|
2
myyou OP @zog kylin-2.4.0, 测试了一下,发现 a."member_num" / 3.0 是可以执行的,也就是右边不能为表达式只能是已知到的值,你有遇到这个问题吗?有什么解决办法没?
|
3
zog 2018-08-06 16:38:26 +08:00
被除数不能是个 measure
|
5
zog 2018-08-06 16:43:49 +08:00 1
|
7
zog 2018-08-06 17:01:23 +08:00 1
你自己打个 patch 修一下....以前好像也有
|
9
zog 2018-08-06 17:13:38 +08:00
客气了
|