public static NestedField toIcebergNestedField(
            PrestoIcebergNestedField nestedField,
            Map<String, Integer> columnNameToIdMapping)
    {
        return NestedField.of(
                nestedField.getId(),
                nestedField.isOptional(),
                nestedField.getName(),
                toIcebergType(nestedField.getPrestoType(), nestedField.getName(), columnNameToIdMapping),
                nestedField.getDoc().orElse(null));
    }
@Test(
            expectedExceptions = PrestoException.class,
            expectedExceptionsMessageRegExp = "Cannot convert Row type field row\\(integer, varchar\\) to Iceberg")
    public void testFailOnAnonymousRowType()
    {
        // Create a test TypeManager
        TypeManager typeManager = createTestFunctionAndTypeManager();

        // Create a mock Presto Nested Field
        PrestoIcebergNestedField prestoNestedField = prestoIcebergNestedField(1, "anonymous_row", typeManager);

        // Convert Presto Nested Field to Iceberg NestedField
        Types.NestedField nestedField = toIcebergNestedField(prestoNestedField, columnNameToIdMapping("anonymous_row"));
    }