I fixed this one way for our fork [here](https://github.com/plangrid/sqldelight/pull/1). I'm not sure this is the most scalable way of supporting such functions though.