Yes not possible at constructor. We need to have all the big decimal values to find out the precision need of stddev. (Following the link refered by @tonyhuang  )

We need col values to find out the precision so not possible at compile time too.

Didnt get what do u mean by until the end.  We need the precision in sqrl calc