Github user rxin commented on the issue:
https://github.com/apache/spark/pull/21482
OK I double checked. I don't think we should be adding this functionality,
since different databases implemented it differently, and it is somewhat
difficult to create Infinity in Spark SQL given we return null or nan.
On top of that, we already support equality for infinity, e.g.
```
spark.range(1).select(
org.apache.spark.sql.functions.lit(java.lang.Double.POSITIVE_INFINITY)
===org.apache.spark.sql.functions.lit(java.lang.Double.POSITIVE_INFINITY)).show()
```
The above shows true.
If you start adding inf, we'd need to soon add functions for negative
infinity, and these functions provide very little value beyond what we already
support using equality.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]