----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/69682/#review211807 -----------------------------------------------------------
intg/src/main/java/org/apache/atlas/entitytransform/HiveProcessEntityHandler.java Lines 45 (patched) <https://reviews.apache.org/r/69682/#comment297399> Parsing of qualifiedName for hive_process entities is more involved, than looking for pattern: dbName.tblName@clusterName There are many variations, as listed below: 1. dbName.tblName@clusterName:timeStamp 2. QUERY:dbName.tblName@clusterName:timeStamp->:INSERT:dbName:tbl2Name@clusterName:timeStamp 3. QUERY:dbName.tblName@clusterName:timeStamp:dbName:tbl2Name@clusterName:timeStamp:dbName:tbl3Name@clusterName:timeStamp->:INSERT:dbName:tbl4Name@clusterName:timeStamp For more details, please look into BaseHiveEvent.getQualifiedName(inputs, outputs) - https://github.com/apache/atlas/blob/master/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/events/BaseHiveEvent.java#L752 - Madhan Neethiraj On Jan. 7, 2019, 2:06 p.m., Kapildeo Nayak wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/69682/ > ----------------------------------------------------------- > > (Updated Jan. 7, 2019, 2:06 p.m.) > > > Review request for atlas, Ashutosh Mestry, Nixon Rodrigues, and Sarath > Subramanian. > > > Bugs: ATLAS-3024 > https://issues.apache.org/jira/browse/ATLAS-3024 > > > Repository: atlas > > > Description > ------- > > 1) Created a database db9 with a table and external table and exported it. > 2) On Importing , renamed it to db11 using : > {\"conditions\": {\"hive_db.name\":\"EQUALS: > db9\"},\"action\":{\"hive_db.name\":\"SET: db11\"}}]" > > 3. Attributes related to hive_db location, hive_storagedesc location and > attributes of hive_process and hdfs_path are not renamed and still have db9 > reference. > > > Diffs > ----- > > intg/src/main/java/org/apache/atlas/entitytransform/BaseEntityHandler.java > 975e4ddd6 > > intg/src/main/java/org/apache/atlas/entitytransform/HiveDatabaseEntityHandler.java > b8032aa09 > > intg/src/main/java/org/apache/atlas/entitytransform/HiveProcessEntityHandler.java > PRE-CREATION > > intg/src/main/java/org/apache/atlas/entitytransform/HiveStorageDescriptorEntityHandler.java > 38de206d1 > > intg/src/main/java/org/apache/atlas/entitytransform/TransformationConstants.java > 247de7320 > > > Diff: https://reviews.apache.org/r/69682/diff/2/ > > > Testing > ------- > > Tested in import-export with transformers options. > > > Thanks, > > Kapildeo Nayak > >
