Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Setting a field to NULL in Data Services UserDefined Python

$
0
0

Hello,

 

I am using the User_Defined transform and collection-based python processing to compile a master record for a group.

This worked very well, but since we are in a delta process and are re-creating master records now, we have a special issue: If the master record has previously inherited the information "Audi" in the attribute CAR and now all the children of the master record have been updated to be NULL in this field, I would like to set the attribute to NULL in the master as well.

 

For this I need to be able to set a field (record.Setfield( fieldname, fieldvalue)) to a null value.

Initially I used an empty string, which of course is not the same. I then tried python's equivalent of NULL --> None. This leads to the effect that dataservices fills the fields with "-" which is even further from NULL.

 

Can anyone help here?


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>