Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
umut_gulac
Contributor
Contributor

tMap left outer join does not return null for unmatched row

Hi folks,
I use tMap for left outer join to multiple lookup tables. It returns NULL in the non key columns for unmatched rows as expected; however it DOES NOT return null but returns 0 (numeric zero) for key columns (no matter whether they are set as key in the schema) for unmatched rows. This is confusing, expected or not?
Please see in the screenshots below.
Product_Category_SK is set to 0 for unmatched rows; however I expect that to be NULL. This is set as key in the lookup schema, where in the MySQL Product_Category table, it is a PK.
Product_Price_SK is set to 0 for unmatched rows; again expected to be NULL. This was not set as key in the lookup schema, where in the MySQL Product_Price table, it is a PK.
How can I get them NULL for the unmatched rows?
0683p000009MBK0.png

0683p000009MBo9.png

0683p000009MBfJ.png
0683p000009MBTE.png
Labels (2)
3 Replies
Anonymous
Not applicable

I suspect (I cannot see screen shots) this is related to having int values defined as NOT NULL. This is a complete guess, so may be way off, but I would check this.
umut_gulac
Contributor
Contributor
Author

I suspect (I cannot see screen shots) this is related to having int values defined as NOT NULL. This is a complete guess, so may be way off, but I would check this.

I checked that in tMap out schema and the output component (tMysqlSCD) schema. There I confirmed that I had set those Integer columns as Nullable.
Let me paste the whole job as well.
umut_gulac
Contributor
Contributor
Author

Any one, who has an idea about this, expected or problem ?