Calculate Distance on dremio

Does Dremio support a function such as STDistance on Microsoft SQL or is there a way that we can use to calculate straight line distance on Dremio?

Thanks

@mgct

Have you tried to use external queries in Dremio 4.7 and above?