@VisibleForTesting
  static String getRelativeFileLocation(String tableRootLocation, String fileLocation) {
    tableRootLocation = TableFileUtil.getUriPath(tableRootLocation);
    fileLocation = TableFileUtil.getUriPath(fileLocation);
    if (!tableRootLocation.endsWith("/")) {
      tableRootLocation = tableRootLocation + "/";
    }
    Preconditions.checkArgument(
        fileLocation.startsWith(tableRootLocation),
        String.format("file %s is not in table location %s", fileLocation, tableRootLocation));
    return fileLocation.replaceFirst(tableRootLocation, "");
  }
Generate file location in trash

@param relativeFileLocation - relative location of file
@param trashLocation - trash location
@param deleteTime - time the file deleted
@return file location in trash
amoro-format-iceberg/src/main/java/org/apache/amoro/io/BasicTableTrashManager.java