@Override
  protected boolean isSplitable(FileSystem fs, Path filename) {
    if (filename instanceof HoodieRealtimePath) {
      return ((HoodieRealtimePath) filename).isSplitable();
    }

    return super.isSplitable(fs, filename);
  }
@Test
  void pathNotSplitableIfContainsDeltaFiles() throws IOException {
    URI basePath = Files.createTempFile(tempDir, "target", ".parquet").toUri();
    HoodieRealtimePath rtPath = new HoodieRealtimePath(new Path("foo"), "bar", basePath.toString(), Collections.emptyList(), "000", false, Option.empty());
    assertTrue(new HoodieMergeOnReadTableInputFormat().isSplitable(fs, rtPath), "Path only contains the base file should be splittable");

    URI logPath = Files.createTempFile(tempDir, ".test", ".log.4_1-149-180").toUri();
    HoodieLogFile logFile = new HoodieLogFile(storage.getPathInfo(new StoragePath(logPath)));
    rtPath = new HoodieRealtimePath(new Path("foo"), "bar", basePath.toString(), Collections.singletonList(logFile), "000", false, Option.empty());
    assertFalse(new HoodieMergeOnReadTableInputFormat().isSplitable(fs, rtPath), "Path contains log files should not be splittable.");
  }