-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
PARQUET-2386: More consistent code style in parquet-mr #1209
PARQUET-2386: More consistent code style in parquet-mr #1209
Conversation
The |
Thanks for the improvement! Could you please take a look at this? @shangxinli @gszadovszky @Fokko |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @amousavigourabi for working on this!
One comment about tabs for indention, otherwise LGTM.
<indent> | ||
<tabs>true</tabs> | ||
<spacesPerTab>4</spacesPerTab> | ||
</indent> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it mean we allow tabs for indention? (Personally, I don't like tabs because it might be rendered differently on different systems.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, tabs are not allowed by this configuration. This block is a way to make the linter work as it should with two space indents as used by Parquet, instead of four.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a bit hacky, but it also allows contributors to run the spotless:apply
goal in case they are for whatever reason using tabs in their development environment.
This is great @amousavigourabi. I was thinking of adding linting as well, so great work here! |
@Fokko , how do we want to coordinate this pull request and your refactoring PRs? I do not feel a lot for applying the editorconfig and Spotless a dozen or so times to resolve conflicts in this PR after each of those get merged. |
@amousavigourabi I can see that it is not nice having to rebase all the time. I can hold off on mine, they are probably easier to resolve than yours. |
Add linter and associated editor configuration
Apply more consistent style using linter and editor configuration
fcb0056
to
8756cf9
Compare
I rebased on the latest master. I'd rather get this merged somewhat quickly (maybe by the end of the week?) as to avoid blocking other merges and/or endless rebasing. |
I just merged this PR to unblock others. Thanks @amousavigourabi! |
Make sure you have checked all steps below.
Jira
Tests
Commits
Documentation
This PR contains two commits, the first adds the style checks and configurations, the second applies these changes to the repository.