Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-6858

Unit tests decimal_udf.q, vectorization_div0.q fail with jdk-7.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • None
    • None

    Description

      Unit tests decimal_udf.q, vectorization_div0.q fail with jdk-7.

      < -250.0	6583411.236	1.0	6583411.236	-0.004	-0.0048
      ---
      > -250.0	6583411.236	1.0	6583411.236	-0.0040	-0.0048
      

      Following code reproduces this behavior when run in jdk-7 vs jdk-6. Jdk-7 produces -0.004 while, jdk-6 produces -0.0040.

      public class Main {
        public static void main(String[] a) throws Exception {
           double val = 0.004;
           System.out.println("Value = "+val);
        }
      }
      

      This happens to be a bug in jdk6, that has been fixed in jdk7.
      http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4511638

      Attachments

        1. HIVE-6858.2.patch
          20 kB
          Jitendra Nath Pandey
        2. HIVE-6858.1.patch
          17 kB
          Jitendra Nath Pandey

        Activity

          People

            jnp Jitendra Nath Pandey
            jnp Jitendra Nath Pandey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: