Since this function only accepts `POLYGON`s, I think the signature should be
```mysql
double ST_CompactnessRatio(POLYGON poly);
```