Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3Location moved to absa commons #71

Merged
merged 5 commits into from
Apr 7, 2021
Merged

Conversation

dk1844
Copy link
Collaborator

@dk1844 dk1844 commented Mar 31, 2021

Blocked by AbsaOSS/commons#72

Copy link
Collaborator

@benedeki benedeki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will approve right after common 0.0.27 will have been released.


val location = path.toS3LocationOrFail.withRegion(region)
val location = path.toS3Location match {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't the S3Location.apply be easier? No need to match.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, done.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commons 0.0.27 is now released.

@dk1844 dk1844 force-pushed the feature/s3location-in-commons branch from 98a09f1 to 02d7c5b Compare April 6, 2021 13:07
atum/pom.xml Outdated
<groupId>za.co.absa.commons</groupId>
<artifactId>commons_${scala.binary.version}</artifactId>
<version>${commons.version}</version>
<scope>provided</scope>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this provided?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing, my mistake, that was a remnant of an exploratory build. Removed.

<dependency>
<groupId>za.co.absa.commons</groupId>
<artifactId>commons_${scala.binary.version}</artifactId>
<version>${commons.version}</version>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last question. Does this need to be here if there are commons already in atum?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regional.scala in this package needs S3Location stuff from Absa commons.

It would work with the dependency on a transitive basis, too (so it would not need to be listed to work), but since we are explicitly using it in this package, we should also explicitly list it, IMHO.

@dk1844 dk1844 merged commit 62eea2b into master Apr 7, 2021
@dk1844 dk1844 deleted the feature/s3location-in-commons branch April 7, 2021 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants