Skip to content

Commit

Permalink
Acxiom#345 Fixed issue with connector provider code causing aws-spark…
Browse files Browse the repository at this point in the history
… build to fail.
  • Loading branch information
dafreels committed Apr 24, 2023
1 parent d856e65 commit ad54621
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ final class AWSSparkConnectorProvider extends ConnectorProvider {
credentialName = options.get("credentialName").map(_.toString),
credential = getCredentials(Some(options))
)

}

private def getCredentials(options: Option[Map[String, Any]]): Option[Credential] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ final class AWSConnectorProvider extends ConnectorProvider {

object S3URI {
def unapply(uri: String): Option[URI] = Try(new URI(uri)).toOption.collect {
case u if u.getScheme.startsWith("s3") => u
case u if Option(u.getScheme).mkString.startsWith("s3") => u
}
}

0 comments on commit ad54621

Please sign in to comment.