Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: rhallmarkYou may also try to convert the field to string first before trying to change the empty field to null.
X = if field.str().trim() == "" then str(null) else field.str()
emit *
override emit X as field