fix column value as a function for sql source