Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
8a26c79e
Commit
8a26c79e
authored
Oct 03, 2018
by
Ashutosh Mestry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2906: Allow transforms to be applied when entity-level transforms are present.
parent
7763fd0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
HiveStorageDescriptorEntityHandler.java
...s/entitytransform/HiveStorageDescriptorEntityHandler.java
+8
-1
TransformationConstants.java
...apache/atlas/entitytransform/TransformationConstants.java
+1
-0
No files found.
intg/src/main/java/org/apache/atlas/entitytransform/HiveStorageDescriptorEntityHandler.java
View file @
8a26c79e
...
...
@@ -26,7 +26,7 @@ import java.util.List;
import
static
org
.
apache
.
atlas
.
entitytransform
.
TransformationConstants
.*;
public
class
HiveStorageDescriptorEntityHandler
extends
BaseEntityHandler
{
static
final
List
<
String
>
CUSTOM_TRANSFORM_ATTRIBUTES
=
Arrays
.
asList
(
HIVE_DB_NAME_ATTRIBUTE
,
HIVE_TABLE_NAME_ATTRIBUTE
,
HIVE_DB_CLUSTER_NAME_ATTRIBUTE
);
static
final
List
<
String
>
CUSTOM_TRANSFORM_ATTRIBUTES
=
Arrays
.
asList
(
HIVE_DB_NAME_ATTRIBUTE
,
HIVE_TABLE_NAME_ATTRIBUTE
,
HIVE_DB_CLUSTER_NAME_ATTRIBUTE
,
HIVE_STORAGE_DESC_LOCATION_ATTRIBUTE
);
public
HiveStorageDescriptorEntityHandler
(
List
<
AtlasEntityTransformer
>
transformers
)
{
...
...
@@ -90,6 +90,9 @@ public class HiveStorageDescriptorEntityHandler extends BaseEntityHandler {
case
HIVE_DB_CLUSTER_NAME_ATTRIBUTE:
return
clusterName
;
case
HIVE_STORAGE_DESC_LOCATION_ATTRIBUTE:
return
location
;
}
return
super
.
getAttribute
(
attribute
);
...
...
@@ -116,6 +119,10 @@ public class HiveStorageDescriptorEntityHandler extends BaseEntityHandler {
isCustomAttributeUpdated
=
true
;
break
;
case
HIVE_STORAGE_DESC_LOCATION_ATTRIBUTE:
location
=
attributeValue
;
break
;
default
:
super
.
setAttribute
(
attribute
,
attributeValue
);
break
;
...
...
intg/src/main/java/org/apache/atlas/entitytransform/TransformationConstants.java
View file @
8a26c79e
...
...
@@ -37,6 +37,7 @@ public final class TransformationConstants {
public
static
final
String
HDFS_PATH_NAME_ATTRIBUTE
=
"hdfs_path.name"
;
public
static
final
String
HDFS_PATH_PATH_ATTRIBUTE
=
"hdfs_path.path"
;
public
static
final
String
HDFS_CLUSTER_NAME_ATTRIBUTE
=
"hdfs_path.clusterName"
;
public
static
final
String
HIVE_STORAGE_DESC_LOCATION_ATTRIBUTE
=
"hive_storagedesc.location"
;
public
static
final
char
TYPE_NAME_ATTRIBUTE_NAME_SEP
=
'.'
;
public
static
final
char
CLUSTER_DELIMITER
=
'@'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment