File tree 6 files changed +7
-7
lines changed
package-toolkit/runtime/src/main/kotlin/com/atlan/pkg/util
cube-assets-builder/src/main/kotlin/com/atlan/pkg/cab
lineage-builder/src/main/kotlin/com/atlan/pkg/lb
relational-assets-builder/src/main/kotlin/com/atlan/pkg/rab
6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ interface AssetResolver {
19
19
fun getConnectionIdentityFromQN (agnosticQualifiedName : String ): ConnectionIdentity ? {
20
20
val tokens = agnosticQualifiedName.split(" /" )
21
21
return if (tokens.size > 1 ) {
22
- ConnectionIdentity (tokens[0 ], tokens[1 ])
22
+ ConnectionIdentity (tokens[0 ], tokens[1 ].lowercase() )
23
23
} else {
24
24
null
25
25
}
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ abstract class AssetImporter(
90
90
when (typeName) {
91
91
Connection .TYPE_NAME -> {
92
92
val connection = CSVXformer .trimWhitespace(row[header.indexOf(Asset .CONNECTION_NAME .atlanFieldName)])
93
- val connector = CSVXformer .trimWhitespace(row[header.indexOf(ConnectionImporter .CONNECTOR_TYPE )])
93
+ val connector = CSVXformer .trimWhitespace(row[header.indexOf(ConnectionImporter .CONNECTOR_TYPE )]).lowercase()
94
94
parent = null
95
95
unique = ConnectionIdentity (connection, connector).toString()
96
96
partial = " "
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ object Importer {
171
171
}
172
172
if (connectionIdentity == null ) {
173
173
val name = row.getOrNull(header.indexOf(" connectionName" ))
174
- val type = row.getOrNull(header.indexOf(" connectorType" ))
174
+ val type = row.getOrNull(header.indexOf(" connectorType" ))?.lowercase()
175
175
if (name != null && type != null ) {
176
176
connectionIdentity = AssetResolver .ConnectionIdentity (name, type)
177
177
}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class AssetTransformer(
56
56
inputRow : Map <String , String >,
57
57
prefix : String ,
58
58
): String {
59
- val connectorType = inputRow[" $prefix $CONNECTOR " ] ? : " "
59
+ val connectorType = inputRow[" $prefix $CONNECTOR " ]?.lowercase() ? : " "
60
60
val connectionName = inputRow[" $prefix $CONNECTION " ] ? : " "
61
61
val connectionId = AssetResolver .ConnectionIdentity (connectionName, connectorType)
62
62
return ctx.connectionCache.getIdentityMap().getOrDefault(connectionId, " " )
@@ -117,7 +117,7 @@ class AssetTransformer(
117
117
assetQN,
118
118
inputRow[" $prefix $TYPE " ] ? : " " ,
119
119
inputRow[" $prefix $NAME " ] ? : " " ,
120
- inputRow[" $prefix $CONNECTOR " ] ? : " " ,
120
+ inputRow[" $prefix $CONNECTOR " ]?.lowercase() ? : " " ,
121
121
connectionQN,
122
122
)
123
123
} else {
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class LineageTransformer(
65
65
if (source !is ICatalog || target !is ICatalog ) {
66
66
logger.warn { " Source and/or target asset are not subtypes of Catalog, and therefore cannot exist in lineage: $inputRow " }
67
67
} else {
68
- val xformConnector = inputRow[XFORM_CONNECTOR ] ? : " "
68
+ val xformConnector = inputRow[XFORM_CONNECTOR ]?.lowercase() ? : " "
69
69
val xformConnection = inputRow[XFORM_CONNECTION ] ? : " "
70
70
val connectionId = AssetResolver .ConnectionIdentity (xformConnection, xformConnector)
71
71
val connectionQN = ctx.connectionCache.getIdentityMap().getOrDefault(connectionId, " " )
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ abstract class AssetImporter(
93
93
when (typeName) {
94
94
Connection .TYPE_NAME -> {
95
95
val connection = CSVXformer .trimWhitespace(row[header.indexOf(Asset .CONNECTION_NAME .atlanFieldName)])
96
- val connector = CSVXformer .trimWhitespace(row[header.indexOf(ConnectionImporter .CONNECTOR_TYPE )])
96
+ val connector = CSVXformer .trimWhitespace(row[header.indexOf(ConnectionImporter .CONNECTOR_TYPE )]).lowercase()
97
97
current = ConnectionIdentity (connection, connector).toString()
98
98
parent = null
99
99
}
You can’t perform that action at this time.
0 commit comments