[
https://issues.apache.org/jira/browse/ATLAS-2873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16616871#comment-16616871
]
Sarath Subramanian commented on ATLAS-2873:
-------------------------------------------
Code Review: https://reviews.apache.org/r/68713/
> Atlas Import Transform Handler Implementation
> ---------------------------------------------
>
> Key: ATLAS-2873
> URL: https://issues.apache.org/jira/browse/ATLAS-2873
> Project: Atlas
> Issue Type: Task
> Components: atlas-core
> Affects Versions: 0.8.3
> Reporter: Sarath Subramanian
> Assignee: Sarath Subramanian
> Priority: Major
> Fix For: 0.8.3
>
>
> Implement atlas entity transformation during import.
>
> e.g.
> *Condition Operators :* EQUALS, STARTS_WITH
> *Action Operators* : SET, TO_LOWER, TO_UPPER, REPLACE_PREFIX
>
> *Condition :* "hdfs_path.clusterName", "EQUALS: cl1"
> *Action :* "hdfs_path.clusterName", "SET: cl2"
>
> *Condition :* "hdfs_path.clusterName", "EQUALS: cl1"
> *Action :* " hdfs_path.clusterName", "TO_UPPER:"
>
> *Condition :* " hdfs_path.clusterName", "EQUALS: CL1"
> *Action :* " hdfs_path.clusterName", "TO_LOWER:"
>
> *Condition :* " hdfs_path.name", "STARTS_WITH: /aa/bb/"
> *Action :* " hdfs_path.name", "REPLACE_PREFIX: = :/aa/bb/=/xx/yy/"
>
> *Condition :* "hive_db.clusterName", "EQUALS: cl1"
> *Action :* "hive_db.clusterName", "SET: cl1_backup;
>
> *Condition :* "hive_db.name", "EQUALS: hr"
> *Action :* "hive_db.name", "SET: hr_backup"
>
> *Condition :* "hive_table.name", "EQUALS: employees"
> *Action :* "hive_table.name", "SET: employees_backup"
>
> *Condition :* "hive_column.name", "EQUALS: age"
> *Action :* "hive_column.name", "SET: age_backup"
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)