Hi @vgautam,
In the try_variant_get
function, NULL is returned in two scenarios:
- Object Not Found: If the specified path does not exist in the JSON object.
- Invalid Cast: If the object at the specified path cannot be cast to the target type.
To differentiate between these two scenarios, you would need to handle the cases separately in your SQL logic. Unfortunately, the try_variant_get
function itself does not provide a direct way to distinguish between these two scenarios. You may need to use additional logic or checks to determine the exact cause of the NULL value