The use of QUANTILE is strongly discouraged. It is a Teradata extension to the ANSI SQL:2011 standard and is retained only for backward compatibility with existing applications.
To compute QUANTILE(q, s) using ANSI window functions, use the following:
(RANK() OVER (ORDER BY s) - 1) * q / COUNT(*) OVER()