kazuyukitanimura commented on code in PR #5033:
URL: https://github.com/apache/datafusion-comet/pull/5033#discussion_r3648795593


##########
spark/src/test/resources/sql-tests/expressions/math/pow.sql:
##########
@@ -15,27 +15,25 @@
 -- specific language governing permissions and limitations
 -- under the License.
 
+-- pow runs natively and matches Spark exactly, including edge cases such as 
pow(0, -1) = Infinity.
+
 statement
 CREATE TABLE test_pow(base double, exp double) USING parquet
 
 statement
 INSERT INTO test_pow VALUES (0.0, -1), (2.0, 3.0), (0.0, 0.0), (-1.0, 2.0), 
(-1.0, 0.5), (2.0, -1.0), (NULL, 2.0), (2.0, NULL), (cast('NaN' as double), 
2.0), (cast('Infinity' as double), 2.0), (2.0, cast('Infinity' as double))

Review Comment:
   negative infinity can be interesting too. we probably need a bit more 
combinations.



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

Reply via email to