Hey Guys, I just filed DRILL-3834 [1]. This a task a relatively new developer could probably pick up to better understand the Drill compilation and generation code paths. Also up for other ideas around this. This is a something that makes UDF creation much less pleasant than a user should have to endure.
[1] https://issues.apache.org/jira/browse/DRILL-3834 -- Jacques Nadeau CTO and Co-Founder, Dremio