Skip to content

有count函数的字段没列出来 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wangxn52 opened this issue Jun 6, 2024 · 3 comments
Open

有count函数的字段没列出来 #2

wangxn52 opened this issue Jun 6, 2024 · 3 comments

Comments

@wangxn52
Copy link

wangxn52 commented Jun 6, 2024

SQL:
insert into xxxxxxxxxxxxxxx
select
NVL (area_name, '全省'),
count(
distinct case
when jc_fir_lvl_svctype = '移网'
and is_iot = '0'
and is_mon_dev = '1' then user_id
end
) + count(
distinct case
when jc_fir_lvl_svctype = '宽带'
and is_iot = '0'
and is_mon_dev = '1' then user_id
end
) 发展量,
count(
distinct case
when jc_fir_lvl_svctype = '移网'
and is_iot = '0'
and is_mon_dev = '1' then user_id
end
) 移网发展量,
count(
distinct case
when jc_fir_lvl_svctype = '宽带'
and is_iot = '0'
and is_mon_dev = '1' then user_id
end
) 宽带发展量
from
PER_086_DWE.DWE_V_D_CUS_GRID_USER_INFO_Z
where
month_id = '202405'
and DAY_ID = '29'
and SCENE_2ND in ('城区直销', '农村直销')
and SCENE_TYPE <> '政企'
and collection_type = 'HQ'
group by
rollup (area_name)

输出:
c:\RPA_TEST\python_data_lineage-main>python dlineage.py /t mysql /text /s /f ..\test.sql
..\test.sql is not a text file.
NVL (area_name, '全省') depends on: PER_086_DWE.DWE_V_D_CUS_GRID_USER_INFO_Z.area_name

@liaowuhen2
Copy link
Collaborator

需要加一个参数:/treatArgumentsInCountFunctionAsDirectDataflow
image

@OneOutlier
Copy link

你好朋友,请问一下,这个仓库项目会在下载到本地90天之后失效吗,你现在还能稳定使用吗

@wangxn52
Copy link
Author

wangxn52 commented Mar 19, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants