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 https://github.com/apache/datafusion/pull/15744#issuecomment-2811894336. cc @alamb