Thanks for the reply!

Although in practice this should work, but it doesn't work if it's running in Databricks. Is there any other readings you can provide?