datahub-project / datahub

The Metadata Platform for your Data and AI Stack
https://datahubproject.io
Apache License 2.0
9.93k stars 2.94k forks source link

fix(browseDAO): Handle null browse path from ES in BrowseDAO #11875

Open pinakipb2 opened 3 days ago

pinakipb2 commented 3 days ago

Checklist

Background:

In PR: https://github.com/datahub-project/datahub/pull/11514/files, empty strings were considered as null for ES indexing.

In Kibana:

image

From DB (aspect):

image

Issue:

This is causing null pointer exception for entities, where browse path is empty string.

Which is emulated in the below test:

image

Have added test for the changes as well.