Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Do
    • 3.0.0
    • None
    • SQL
    • None

    Description

      spark-sql> create or replace temporary view t1 as select * from (values(1), (2), (null), (3), (null)) as v (val);
      spark-sql> select * from t1 order by val asc;
      NULL
      NULL
      1
      2
      3
      spark-sql> select * from t1 order by val desc;
      3
      2
      1
      NULL
      NULL
      
      postgres=# create or replace temporary view t1 as select * from (values(1), (2), (null), (3), (null)) as v (val);
      CREATE VIEW
      postgres=# select * from t1 order by val asc;
       val
      -----
         1
         2
         3
      
      
      (5 rows)
      
      postgres=# select * from t1 order by val desc;
       val
      -----
      
      
         3
         2
         1
      (5 rows)
      

      https://www.postgresql.org/docs/11/queries-order.html

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yumwang Yuming Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: