organization load sql fix
This commit is contained in:
@@ -2,9 +2,9 @@ INSERT INTO DIM_ORGANIZATION (org_id, name, region, country, club_partner_status
|
|||||||
VALUES (
|
VALUES (
|
||||||
${organization_id},
|
${organization_id},
|
||||||
'${name}',
|
'${name}',
|
||||||
${region:isEmpty():ifElse('NULL', concat("'", ${region}, "'"))},
|
NULLIF('${region}', ''),
|
||||||
${country:isEmpty():ifElse('NULL', concat("'", ${country}, "'"))},
|
NULLIF('${country}', ''),
|
||||||
${club_partner_status:isEmpty():ifElse('NULL', concat("'", ${club_partner_status}, "'"))},
|
NULLIF('${club_partner_status}', ''),
|
||||||
${founded_year:isEmpty():ifElse('NULL', ${founded_year})},
|
TO_NUMBER(NULLIF('${founded_year}', '')),
|
||||||
${social_media_followers_m:isEmpty():ifElse('NULL', ${social_media_followers_m})}
|
TO_NUMBER(NULLIF('${social_media_followers_m}', ''))
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user