gatorsmile commented on issue #27361: [SPARK-30644] [TEST] Remove query index 
from the golden files of SQLQueryTestSuite        
URL: https://github.com/apache/spark/pull/27361#issuecomment-578463487
 
 
   I think the separators are still needed. 
   
   ```
   select grouping(a), a, array_agg(b),
          rank(a) within group (order by b nulls first),
          rank(a) within group (order by b nulls last)
     from (values (1,1),(1,4),(1,5),(3,1),(3,2)) v(a,b)
    group by rollup (a) order by a;
    grouping | a |  array_agg  | rank | rank 
   ----------+---+-------------+------+------
           0 | 1 | {1,4,5}     |    1 |    1
           0 | 3 | {1,2}       |    3 |    3
           1 |   | {1,4,5,1,2} |    1 |    6
   (3 rows)
   ```
   
   The PgSQL golden files look cleaner, but it only shows the output column 
names, but does not output the column data types. 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to