jtmzheng commented on issue #7829:
URL: https://github.com/apache/hudi/issues/7829#issuecomment-1432525020

   @alexeykudinkin sorry for the delay in response - we just have:
   
   ```
   from pyspark.sql import functions as f
   
   df = spark.read.format("parquet").load(INPUT_PATH) # eg. a MySQL table 
snapshot
   df = df.withColumn(
       "_autogenerated_primary_key",
       F.monotonically_increasing_id(),
   )
   df.write.format("hudi").save(OUTPUT_PATH)
   ```
   
   We switched to using `uuid` and haven't seen the issue since - though this 
is tricky to reproduce because the problem happens on Spark retries of key 
generation


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

Reply via email to