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

Apply Baseline to iceberg-pig #525

Merged
merged 6 commits into from Oct 27, 2019
Merged

Apply Baseline to iceberg-pig #525

merged 6 commits into from Oct 27, 2019

Conversation

Fokko
Copy link
Contributor

@Fokko Fokko commented Oct 9, 2019

Fixes #159

@Fokko Fokko force-pushed the fd-fix-pig branch 2 times, most recently from 4773ee2 to 0a8271f Compare October 9, 2019 20:15
Copy link
Contributor

@rdsr rdsr left a comment

Choose a reason for hiding this comment

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

LGTM! +1
It seems there are a few more checkstyle errors being reported by iceberg-pig module in the travis build https://travis-ci.org/apache/incubator-iceberg/jobs/595802545

@rdblue
Copy link
Contributor

rdblue commented Oct 10, 2019

Thanks for working on these, @Fokko! Great to see you in this community as well as Avro and Parquet!

@@ -73,6 +60,16 @@ private static ResourceFieldSchema convert(Type type) throws IOException {
return result;
}

private static ResourceFieldSchema [] convertFields(List<Types.NestedField> fields) throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like a non functional change? [method moved]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Overloaded methods need to be grouped together.

@@ -29,7 +29,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang.SerializationUtils;
import org.apache.commons.lang3.SerializationUtils;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did we update the to this api?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lang is being considered as deprecated, and the linter complaints that we should move to lang3.

@@ -451,6 +451,8 @@ project(':iceberg-pig') {
compile project(':iceberg-core')
compile project(':iceberg-parquet')

compile "org.apache.commons:commons-lang3"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there more context on the update to commons-lang3? Was this just an undeclared dependency? Why not use commons-lang?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lang is being considered as deprecated, and the linter complaints that we should move to lang3. Therefore I've added it as a dependency. We only use it for serializing, de-serializing, so I'm fine to suppress the error as well. WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds fine to me, but we'll need to make sure this doesn't affect anything in the runtime Jar.

Copy link
Contributor

Choose a reason for hiding this comment

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

Confirmed that this is provided by Spark and is excluded from the runtime Jar.

@Fokko
Copy link
Contributor Author

Fokko commented Oct 18, 2019

Any pending issues?

@rdblue
Copy link
Contributor

rdblue commented Oct 18, 2019

Since this changes dependencies, I'm reluctant to merge it before the 0.7.0-incubating release is final. I plan to merge this and the one for iceberg-parquet shortly after that release.

@rdblue
Copy link
Contributor

rdblue commented Oct 22, 2019

@Fokko, I think this is ready to be merged, but it conflicts with the iceberg-parquet commit. Could you fix it? Thanks!

@Fokko
Copy link
Contributor Author

Fokko commented Oct 22, 2019

Sure @rdblue, fixed the merge conflicts

@Fokko
Copy link
Contributor Author

Fokko commented Oct 27, 2019

@rdblue @rdsr Gentle ping, can we move this forward? :-)

Copy link
Contributor

@rdsr rdsr left a comment

Choose a reason for hiding this comment

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

LGTM @Fokko !


// We enable baseline-idea everywhere so that everyone can use IntelliJ to build code against the
// Baseline style guide.
def baselineProjects = [ project("iceberg-api"), project("iceberg-common"), project("iceberg-core"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice to get this cleaned up!

@Fokko
Copy link
Contributor Author

Fokko commented Oct 27, 2019

image

@rdblue
Copy link
Contributor

rdblue commented Oct 27, 2019

+1, but it looks like the last push didn't get tested. I'm going to close this and re-open to trigger a build.

@rdblue rdblue closed this Oct 27, 2019
@rdblue rdblue reopened this Oct 27, 2019
@rdblue rdblue merged commit 040b272 into apache:master Oct 27, 2019
@Fokko Fokko deleted the fd-fix-pig branch October 16, 2023 08:00
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.

[Baseline] Apply Baseline to iceberg-pig
3 participants