abmo-x commented on code in PR #6779:
URL: https://github.com/apache/iceberg/pull/6779#discussion_r1112293111


##########
spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/Spark3Util.java:
##########
@@ -836,19 +836,47 @@ public static String quotedFullIdentifier(String 
catalogName, Identifier identif
    * @param format format of the file
    * @param partitionFilter partitionFilter of the file
    * @return all table's partitions
+   * @deprecated use {@link Spark3Util#getPartitions(SparkSession, Path, 
String, Map,
+   *     PartitionSpec)}
    */
+  @Deprecated

Review Comment:
   now that the other method spec is not optional, I think we can remove 
deprecated flag for this method.
   However I feel that as we know spark interpretation doesn't work for all 
cases and users will always have a partition spec, it might be better to 
deprecate this as `add_files` doesn't validate schema and does not fail fast. 
if a partition type is not interpreted correctly add_files doesn't fail and 
users will end up with bad data in their table.
   



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