2010YOUY01 commented on PR #15610:
URL: https://github.com/apache/datafusion/pull/15610#issuecomment-2791514957

   > And some other thoughts:
   > 
   > 1. This is a pretty complicated program, maybe we should write some unit 
tests to make sure it doesn't break for future modifications?
   
   I'll try to do most of the testing and cover edge cases in integration tests 
at 
https://github.com/apache/datafusion/blob/main/datafusion/core/tests/fuzz_cases/sort_fuzz.rs
 and 
https://github.com/apache/datafusion/blob/main/datafusion/core/tests/fuzz_cases/sort_query_fuzz.rs,
 instead of doing extensive UTs.
   
   I think we should promote tests to a higher level (SQL) when possible, 
because that API is much more stable and easier to manage. If a feature is 
tested mostly through unit tests, and someone later refactors the component 
away, those tests are likely to get lost—they might assume the feature is 
already covered by integration tests.
   
   I first heard this idea in a talk by the DuckDB developers 
https://youtu.be/BgC79Zt2fPs?si=WiziGqJ8Dlz6-MMW 
   


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to