SUPPORT-8925 fix
This commit is contained in:
parent
1642a33e4b
commit
fd33d501e1
1 changed files with 24 additions and 3 deletions
|
|
@ -632,7 +632,7 @@ aggregated AS (
|
|||
WHEN r.gender = 'MALE' THEN 'M'
|
||||
ELSE 'W'
|
||||
END AS gender,
|
||||
'CONVICT' AS convicts,
|
||||
'CONVICT' AS convicts,
|
||||
r.recruitment_id,
|
||||
-- Считаем количество уникальных рекрутов с каждой категорией
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_A > 0) AS a,
|
||||
|
|
@ -649,8 +649,8 @@ aggregated_all AS (
|
|||
SELECT
|
||||
current_date AS recording_date,
|
||||
'ALL' AS gender,
|
||||
'CONVICT' AS convicts,
|
||||
dc.recruitment_id,
|
||||
'CONVICT' AS convicts,
|
||||
r.recruitment_id,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_A > 0) AS a,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_B > 0) AS b,
|
||||
COUNT(DISTINCT r.id) FILTER (WHERE has_C > 0) AS c,
|
||||
|
|
@ -689,6 +689,27 @@ FROM aggregated_all</sql>
|
|||
<yloc>640</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform>
|
||||
<name>Doris bulk loader</name>
|
||||
<type>DorisBulkLoader</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<bufferCount>0</bufferCount>
|
||||
<bufferSize>0</bufferSize>
|
||||
<headers>
|
||||
</headers>
|
||||
<attributes/>
|
||||
<GUI>
|
||||
<xloc>1280</xloc>
|
||||
<yloc>320</yloc>
|
||||
</GUI>
|
||||
</transform>
|
||||
<transform_error_handling>
|
||||
</transform_error_handling>
|
||||
<attributes/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue