amanomer opened a new pull request #25906: [SPARK-28599][SQL][2.4] Fix 
`Execution Time` and `Duration` column sorting for ThriftServerSessionPage
URL: https://github.com/apache/spark/pull/25906
 
 
   ### What changes were proposed in this pull request?
   This PR add support sorting `Execution Time` and `Duration` columns for 
`ThriftServerSessionPage`.
   
   ### Why are the changes needed?
   Previously, it's not sorted correctly.
   
   ### Does this PR introduce any user-facing change?
   Yes.
   
   ### How was this patch tested?
   Manually do the following and test sorting on those columns in the Spark 
Thrift Server Session Page.
   ```
   $ sbin/start-thriftserver.sh
   $ bin/beeline -u jdbc:hive2://localhost:10000
   0: jdbc:hive2://localhost:10000> create table t(a int);
   +---------+--+
   | Result  |
   +---------+--+
   +---------+--+
   No rows selected (0.521 seconds)
   0: jdbc:hive2://localhost:10000> select * from t;
   +----+--+
   | a  |
   +----+--+
   +----+--+
   No rows selected (0.772 seconds)
   0: jdbc:hive2://localhost:10000> show databases;
   +---------------+--+
   | databaseName  |
   +---------------+--+
   | default       |
   +---------------+--+
   1 row selected (0.249 seconds)
   ```
   
   **Sorted by `Execution Time` column**:
   
![image](https://user-images.githubusercontent.com/5399861/65387476-53038900-dd7a-11e9-885c-fca80287f550.png)
   
   **Sorted by `Duration` column**:
   
![image](https://user-images.githubusercontent.com/5399861/65387481-6e6e9400-dd7a-11e9-9318-f917247efaa8.png)
   
   Closes #25892 from wangyum/SPARK-28599.
   
   Authored-by: Yuming Wang <yumw...@ebay.com>
   Signed-off-by: Dongjoon Hyun <dh...@apple.com>

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to