wangyum opened a new pull request #25417: [SPARK-28686][SQL][TEST] Move 
udf_radians from HiveCompatibilitySuite to HiveQuerySuite
URL: https://github.com/apache/spark/pull/25417
 
 
   ## What changes were proposed in this pull request?
   
   This PR moves `udf_radians` from `HiveCompatibilitySuite` to 
`HiveQuerySuite` to make it easy to test with JDK 11 because it results 
different value from JDK 9:
   ```java
   public class TestRadians {
     public static void main(String[] args) {
       System.out.println(java.lang.Math.toRadians(57.2958));
     }
   }
   ```
   ```sh
   [root@spark-3267648 ~]# javac TestRadians.java
   [root@spark-3267648 ~]# /usr/lib/jdk-11.0.3/bin/java TestRadians
   1.0000003575641672
   [root@spark-3267648 ~]# /usr/lib/jdk8u222-b10/bin/java TestRadians
   1.000000357564167
   ```
   
   ## How was this patch tested?
   
   manual tests
   

----------------------------------------------------------------
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