I am doing a SQL query which is working fine - but as soon as I change the value from AVG to PERCENTILE I am getting following error message:
Whoops! Expression failed
Expression failed with the message:
[math] > Failed to parse expression. Expected "*", "+", "-", "/", or end of input but "t" found.
I checked it with the debugger and the data looks 1:1 identical:
I did a little investigation and it turns out you cannot start your variable if it's used for math with a number. Change the name ''95th' to something like 'percentile95th' and it should work. I'll consult with the proper team if it's a bug or a correct behavior.
It's generally not allowed to have column aliases that start with digits:
postgres=# select first_name AS 56 from test_emp;
ERROR: syntax error at or near "56"
LINE 1: select first_name AS 56 from test_emp;
^
postgres=# select first_name AS asdf56 from test_emp;
postgres=# select first_name AS asdf56 from test_emp limit 5;
asdf56
-----------
Georgi
Bezalel
Parto
Chirstian
Kyoichi
(5 rows)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.