refactor(udf): use cfg_or_panic
for UDF implementations
#12416
Merged
cfg_or_panic
for UDF implementations
#12416