SELECT returns an empty object when a field is missing because extractAttributeFromDict defaults the subtree to an empty dict instead of None.
|
fieldsComponents = attribute.split('.') |
|
for component in fieldsComponents: |
|
subtree = subtree.get(component, {}) |
|
if subtree is None: |
|
return None |