Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-44923][PYTHON][BUILD] Some directories should be cleared when …
…regenerating files ### What changes were proposed in this pull request? The pr aims to fix some bug in regenerating pyspark docs in certain scenarios. ### Why are the changes needed? - The following error occurred while I was regenerating the pyspark document. <img width="1001" alt="image" src="https://github.com/apache/spark/assets/15246973/548abd63-4349-4267-b1fe-a293bd1e7f3e"> - We can simply reproduce this problem as follows: 1.git reset --hard 3f380b9 <img width="1416" alt="image" src="https://github.com/apache/spark/assets/15246973/5ab9c8fc-5835-4ced-8d92-9d5e020b262a"> 2.make clean html, (at this point, it is successful.) <img width="1000" alt="image" src="https://github.com/apache/spark/assets/15246973/5c3ce07f-cbe8-4177-ae22-b16c3fc62e01"> 3.git pull, (at this point, the function `chr` has been deleted, but the previously generated file(`pyspark.sql.functions.chr.rst`) will not be deleted.) 4.make clean html, (at this point, it is failed.) <img width="1001" alt="image" src="https://github.com/apache/spark/assets/15246973/548abd63-4349-4267-b1fe-a293bd1e7f3e"> ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? 1.Pass GA. 2.Manually test. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#42622 from panbingkun/SPARK-44923. Authored-by: panbingkun <[email protected]> Signed-off-by: Ruifeng Zheng <[email protected]>
- Loading branch information