Create hubs from staging table where null is possible #222
-
Hi, I have a dataset that includes (among other) the fields region, health center, and healthcare provider. These are transformed to hubs. However, some fields might be null, but they are still added to the hubs. Shouldn't there be some kind of IS NOT NULL logic for the hubs, or should I ensure that the hash key in my staging table is null when my business key is null? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @mattiasthalen and thanks for reaching out! For the case that a business key is In that case, the Which database are you using? Kind regards |
Beta Was this translation helpful? Give feedback.
It is hashing
""
because theCONCAT()
-Method implicitly converts thenull
value to an empty string, resulting inCONCAT('"', '', '"')
.If you try out using the double pipe
||
like so:it should return
null
and therefore the zero key as hashkey.My code: