kevinjmh commented on a change in pull request #3826:
URL: https://github.com/apache/carbondata/pull/3826#discussion_r456266671
##########
File path:
streaming/src/main/java/org/apache/carbondata/streaming/segment/StreamSegment.java
##########
@@ -400,12 +386,7 @@ public static void recoverFileIfRequired(
public static CarbonFile[] listDataFiles(String segmentDir) {
CarbonFile carbonDir = FileFactory.getCarbonFile(segmentDir);
if (carbonDir.exists()) {
- return carbonDir.listFiles(new CarbonFileFilter() {
- @Override
- public boolean accept(CarbonFile file) {
- return CarbonTablePath.isCarbonDataFile(file.getName());
- }
- });
+ return carbonDir.listFiles(file ->
CarbonTablePath.isCarbonDataFile(file.getName()));
Review comment:
OK.
FYI: I check [spark release note](https://spark.apache.org/docs/2.2.0/),
support for Java 7 was removed since 2.2
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]