Re: TPC-DS queries

2019-03-14 Thread Mark Johnson
I found this error in queries generated from templates query36.tpl, query70.tpl, and query86.tpl. The problem is, lochierarchy is an alias defined in the SELECT statement, and the alias isn't being recognized in the CASE statement. PostgreSQL does not allow a column alias to be referenced in a CA

Re: TPC-DS queries

2019-03-11 Thread Tatsuo Ishii
> Hi, > > I think that the sql is not valid. Based on the order by > documentation, a column label cannot be used in an expression. > > from    https://www.postgresql.org/docs/11/queries-order.html > > Note that an output column name has to stand alone, that is, it > cannot be used in an exp

Re: TPC-DS queries

2019-03-11 Thread reg_pg_stefanz
Hi, I think that the sql is not valid. Based on the order by documentation, a column label cannot be used in an expression. from    https://www.postgresql.org/docs/11/queries-order.html > Note that an output column name has to stand alone, that is, it cannot be used in an expression. R