Skip to content

Commit

Permalink
Fixed some config paths
Browse files Browse the repository at this point in the history
  • Loading branch information
fazpiazu committed Dec 19, 2024
1 parent 167b292 commit 90a2795
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class AtlanService(token: String, baseUrlDataLake: String, baseUrlConfluent: Str
}

private def getSourceTableNameList(config: Config): mutable.MutableList[String] = {
val options = config.environment
val options = config.metadata.environment
val prefix_namespaces = options.namespaces
val infix_namespaces = options.infix_namespaces
val tables = mutable.MutableList[String]()
Expand All @@ -234,7 +234,7 @@ class AtlanService(token: String, baseUrlDataLake: String, baseUrlConfluent: Str
}

private def getQualifiedNameInputs(config: Config): Seq[(String, String)] = {
val options = config.environment
val options = config.metadata.environment
val prefix_namespaces = options.namespaces
val infix_namespaces = options.infix_namespaces

Expand Down Expand Up @@ -321,10 +321,10 @@ class AtlanService(token: String, baseUrlDataLake: String, baseUrlConfluent: Str
mapping.sink match {
case fileSink: FileSink => {
val s3Path = versionRegex.replaceAllIn(fileSink.path, "")
val prefix = ConfigUtilsService.getTablePrefix(mapping.environment.namespaces, s3Path)
val infix = ConfigUtilsService.getTableInfix(mapping.environment.infix_namespaces, s3Path)
val prefix = ConfigUtilsService.getTablePrefix(mapping.metadata.environment.namespaces, s3Path)
val infix = ConfigUtilsService.getTableInfix(mapping.metadata.environment.infix_namespaces, s3Path)
val tableName = ConfigUtilsService.getTableName(mapping)
val dbName = mapping.environment.dbName
val dbName = mapping.metadata.environment.dbName
dbName + "/" + prefix + infix + tableName
}
case streamSink: StreamSink => {
Expand Down

0 comments on commit 90a2795

Please sign in to comment.