singhpk234 commented on code in PR #14308:
URL: https://github.com/apache/iceberg/pull/14308#discussion_r2426801295


##########
spark/v4.0/spark/src/main/java/org/apache/iceberg/spark/SparkSchemaUtil.java:
##########
@@ -187,23 +187,6 @@ public static Schema convert(Schema baseSchema, StructType 
sparkType, boolean ca
     return SparkFixupTypes.fixup(schema, baseSchema);
   }
 
-  /**
-   * Convert a Spark {@link StructType struct} to a {@link Schema} based on 
the given schema.
-   *
-   * <p>This conversion will assign new ids for fields that are not found in 
the base schema.
-   *
-   * <p>Data types, field order, and nullability will match the spark type. 
This conversion may
-   * return a schema that is not compatible with base schema.
-   *
-   * @param baseSchema a Schema on which conversion is based
-   * @param sparkType a Spark StructType
-   * @return the equivalent Schema
-   * @throws IllegalArgumentException if the type cannot be converted or there 
are missing ids
-   */
-  public static Schema convertWithFreshIds(Schema baseSchema, StructType 
sparkType) {

Review Comment:
   +1 on deprecating this first 



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to