andygrove commented on code in PR #24140:
URL: https://github.com/apache/datafusion/pull/24140#discussion_r3729844758


##########
datafusion/spark/README.md:
##########
@@ -27,23 +27,39 @@ This crate is a submodule of DataFusion that provides 
[Apache Spark] compatible
 [apache datafusion]: https://datafusion.apache.org/
 [apache spark]: https://spark.apache.org/
 
-## Testing Guide
+## Implementation Guidelines
 
-When testing functions by directly invoking them (e.g., 
`test_scalar_function!()`), input coercion (from the `signature`
-or `coerce_types`) is not applied.
+When implementing these functions, you can check if there are existing 
implementations
+in the [Sail] or [Comet] projects first. If you do port functionality from 
these
+sources, make sure to port over the corresponding tests too, to ensure 
correctness
+and compatibility.
 
-Therefore, direct invocation tests should only be used to verify that the 
function is correctly implemented.
+### `simplify()`

Review Comment:
   There is a challenge here on how to write sql logic tests to test both the 
`simplify` and the  `invoke_with_args` implementations.
   
   Do you have suggestions on how to address 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]

Reply via email to