huashi-st commented on PR #59973: URL: https://github.com/apache/spark/pull/59973#issuecomment-6732004470
@nchammas Yes, branch-3.5 is on purpose. Master and branch-4.0 support NumPy 2, and their install guides already match `setup.py`, so they don't need this. I was using `assertDataFrameEqual` on PySpark 3.5 with NumPy 2.x installed. When I asked an AI tool whether that combination was supported, it read the install guide, saw `numpy >=1.15`, and told me NumPy 2 was fine. Then I hit a NaN-related failure. I only found the `<2` pin from SPARK-48710 after reading `setup.py`. These days it's mostly AI tools reading the install guide, and they repeat whatever version range it lists. With the fix, they'll stop telling people on 3.5 that NumPy 2 works. If docs-only changes are out of scope for 3.5 now, I'll close this. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
