yihua commented on issue #7589:
URL: https://github.com/apache/hudi/issues/7589#issuecomment-1555373180

   Hi @maheshguptags I think your CALL statement misses a right bracket.  This 
should be the right command:
   ```
   spark.sql("""call create_savepoint(path => table_path, commit_time => 
'20221228054602665')""")
   ```
   I tested the following locally and it works for me:
   ```
   pyspark --jars 
~/Work/repo/hudi/packaging/hudi-spark-bundle/target/hudi-spark3.2-bundle_2.12-0.14.0-SNAPSHOT.jar
 \
     --conf 'spark.serializer=org.apache.spark.serializer.KryoSerializer' \
     --conf 
'spark.sql.catalog.spark_catalog=org.apache.spark.sql.hudi.catalog.HoodieCatalog'
 \
     --conf 
'spark.sql.extensions=org.apache.spark.sql.hudi.HoodieSparkSessionExtension'
   
   spark.sql("CALL create_savepoint(path => '/tmp/hudi_trips_cow', commit_time 
=> '20230519161354886');")
   ```


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