-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
making PinotFS an interface and create BasePinotFS #8063
Conversation
We can (and probably should) change this, but it will be an incompat change. please be sure to mark it as such in the release. |
899a999
to
319e137
Compare
pinot-spi/src/main/java/org/apache/pinot/spi/filesystem/BasePinotFS.java
Outdated
Show resolved
Hide resolved
pinot-spi/src/main/java/org/apache/pinot/spi/filesystem/BasePinotFS.java
Show resolved
Hide resolved
thanks for the feedback @mcvsubbu :-) yes I have the exact same concern and will do just that. will follow up @Jackie-Jiang 's comment too. here is the context #8064 |
319e137
to
6912e01
Compare
Codecov Report
@@ Coverage Diff @@
## master #8063 +/- ##
=============================================
+ Coverage 37.93% 64.66% +26.73%
- Complexity 81 4261 +4180
=============================================
Files 1606 1562 -44
Lines 83405 81525 -1880
Branches 12455 12251 -204
=============================================
+ Hits 31638 52719 +21081
+ Misses 49311 25048 -24263
- Partials 2456 3758 +1302
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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
private static final Logger LOGGER = LoggerFactory.getLogger(BasePinotFS.class); | ||
|
||
/** | ||
* Moves the file or directory from the src to dst. Does not keep the original file. If the dst has parent directories |
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.
The javadoc is the same as the interface, suggest removing this javadoc block
Description
PinotFS
should be an interface instead of abstract base class. Creating a BasePinotFS to accommodate the logics that requires member variables.Release Notes
PinotFS
is no longer an abstract class, instead user can continue to extend fromBasePinotFS
or change to implementPinotFS
.