----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/71831/ -----------------------------------------------------------
Review request for atlas and Nixon Rodrigues. Bugs: ATLAS-3539 https://issues.apache.org/jira/browse/ATLAS-3539 Repository: atlas Description ------- When we fetch database entity by MetastoreEvent object, we do'nt get ownerType attribute. But when we fetch database entity by MetastoreHandler object, we get ownerType attribute for the database. At the time of Table creation from the Spark-Client, our code fetches Database object by using MetastoreHandler, there we can get ownerType in Database. Therefore here I have used MetastoreHandler object to fetch Database object. Also handled the description attribute null and empty case. Diffs ----- addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/events/BaseHiveEvent.java 851582c addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/events/CreateDatabase.java 7bea779 Diff: https://reviews.apache.org/r/71831/diff/1/ Testing ------- Manual testing done as follwos 1. Database created from beeling client. 2. Cheked for the json sent to ATLAS-HOOK, here attribute ownerType was present. 3. Database create from Spark client. 4. Checked for the json sent to ATLAS-HOOK, here attribute ownerType was present. PreCommit build is successful. https://builds.apache.org/job/PreCommit-ATLAS-Build-Test/1565/console Thanks, Mandar Ambawane