-
Notifications
You must be signed in to change notification settings - Fork 298
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
[AMORO-2113] Apply spotless-maven-plugin in trino module #2131
Conversation
Codecov ReportAttention:
... and 452 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
@HuangFru @shidayang
I think we need to change the README.md#building script? |
This is a problem. 'mvn validate' must be divided into 'mvn validate -pl '!trino' with jdk8 and 'mvn validate' with jdk17. Maybe applying spotless to the Trino module is not a good idea. |
It's really inconvenient that the Spotless plugin cannot use the Toolchain plugin. This PR cannot be merged until this issue is resolved. |
@shidayang @zhongqishang |
# Conflicts: # trino/src/main/java/com/netease/arctic/trino/keyed/KeyedConnectorMetadata.java # trino/src/main/java/com/netease/arctic/trino/unkeyed/IcebergMetadata.java # trino/src/main/java/com/netease/arctic/trino/unkeyed/IcebergSplitManager.java # trino/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java # trino/src/main/java/org/apache/hadoop/util/VersionInfo.java # trino/src/test/java/com/netease/arctic/trino/iceberg/BaseConnectorTest.java # trino/src/test/java/com/netease/arctic/trino/iceberg/TestBaseArcticConnectorTest.java
If we can skip the trino module spotless validate, we can configure
Then
This can be more concise, WDYT? |
Good idea, I can't agree with you more. |
Make sense! I will make changes, thank you for your suggestions. |
Modified it according to @zhongqishang 's suggestions, PTAL @zhongqishang @shidayang @baiyangtx. |
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.
LGTM. Thanks for your work!👍
LGTM |
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.
LGTM
* apply spotless-maven-plugin in trino module. * Revert "apply spotless-maven-plugin in trino module." This reverts commit 7415823. * apply spotless-maven-plugin in trino module. * revert test code. * modify ci not apply checkstyle in trino module in hadoop ci. * add doc to README.md * skip trino module by default * modify CI * remove useless code * modify CI * check style * add a profile to skip trino spotless by default
Why are the changes needed?
Close #2113.
Brief change log
googleJavaFormat
to 1.15.0 only to the Trino module.mvn spotless:apply -pl trino
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before making a pull request
Documentation