public static String getFileNameWithoutExt(String filePath) {
    String fileName = getFileName(filePath);

    FileFormat fileFormat = FileFormat.fromFileName(fileName);
    if (fileFormat != null) {
      return fileName.substring(0, fileName.length() - fileFormat.name().length() - 1);
    }

    return fileName;
  }
Parse file name without ext from file path.

@param filePath file path
@return file name without ext parsed from file path, e.g. data-1.
amoro-format-iceberg/src/main/java/org/apache/amoro/utils/TableFileUtil.java