Open
Description
From the intention: https://github.com/apache/datafusion/blob/main/datafusion/core/tests/user_defined/user_defined_plan.rs#L18-L24, I think it's better to put the code in examples.
Also, the code isn't solid, and its tests are fragile, such as #15744 (comment).
cc @alamb