lucasmo commented on issue #466:
URL: 
https://github.com/apache/incubator-xtable/issues/466#issuecomment-2215526699

   @vinishjail97 This is really puzzling. I was able to boil it down to a very 
simple test case that blows up with the recursive error, which has nothing at 
all to do with XTable.
   
   Using the following java dependencies, versions taken from the XTable pom
   * org.apache.hudi:hudi-common:0.14.0
   * org.apache.avro:avro:1.11.3
   
   The following code triggers the recursive exception:
   ```java
   import org.apache.avro.Schema;
   import org.apache.avro.specific.SpecificData;
   
   Schema schema = new 
Schema.Parser().parse("{\"type\":\"record\",\"name\":\"HoodieCleanPartitionMetadata\",\"namespace\":\"org.apache.hudi.avro.model\",\"fields\":[{\"name\":\"partitionPath\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"policy\",\"type\":{\"type\":\"string\",\"avro.java.string\":\"String\"}},{\"name\":\"deletePathPatterns\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},{\"name\":\"successDeleteFiles\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},{\"name\":\"failedDeleteFiles\",\"type\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"avro.java.string\":\"String\"}}},{\"name\":\"isPartitionDeleted\",\"type\":[\"null\",\"boolean\"],\"default\":null}]}");
   SpecificData.getForSchema(schema);
   ```
   
   I got the schema by running `avro-tools getschema 20240708201227546.clean` 
and then I deleted the outer `HoodieCleanMetadata` record. It blows up if I use 
the full schema, too, but this minimal example reduces it further.
   
   Bumping the hudi-common dependency to 0.14.1 seems to have addressed the 
issue. 
   
   


-- 
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: commits-unsubscr...@xtable.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to