Hive
  1. Hive
  2. HIVE-5239

LazyDate goes into irretrievable NULL mode once inited with NULL once

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      None

      Description

      Stumbled across HIVE-4757 with Timestamp. It looks like Date has the same issue.

        Issue Links

          Activity

          Hide
          Jason Dere added a comment -

          attaching HIVE-5239.1.patch

          Show
          Jason Dere added a comment - attaching HIVE-5239 .1.patch
          Hide
          Hive QA added a comment -

          Overall: -1 at least one tests failed

          Here are the results of testing the latest attachment:
          https://issues.apache.org/jira/secure/attachment/12601917/HIVE-5239.1.patch

          ERROR: -1 due to 5 failed/errored test(s), 3087 tests executed
          Failed tests:

          org.apache.hive.hcatalog.mapreduce.TestHCatExternalDynamicPartitioned.testHCatDynamicPartitionedTable
          org.apache.hive.hcatalog.mapreduce.TestSequenceFileReadWrite.testSequenceTableWriteRead
          org.apache.hive.hcatalog.mapreduce.TestSequenceFileReadWrite.testTextTableWriteRead
          org.apache.hive.hcatalog.mapreduce.TestSequenceFileReadWrite.testSequenceTableWriteReadMR
          org.apache.hive.hcatalog.mapreduce.TestSequenceFileReadWrite.testTextTableWriteReadMR
          

          Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/651/testReport
          Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/651/console

          Messages:

          Executing org.apache.hive.ptest.execution.PrepPhase
          Executing org.apache.hive.ptest.execution.ExecutionPhase
          Executing org.apache.hive.ptest.execution.ReportingPhase
          Tests failed with: TestsFailedException: 5 tests failed
          

          This message is automatically generated.

          Show
          Hive QA added a comment - Overall : -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12601917/HIVE-5239.1.patch ERROR: -1 due to 5 failed/errored test(s), 3087 tests executed Failed tests: org.apache.hive.hcatalog.mapreduce.TestHCatExternalDynamicPartitioned.testHCatDynamicPartitionedTable org.apache.hive.hcatalog.mapreduce.TestSequenceFileReadWrite.testSequenceTableWriteRead org.apache.hive.hcatalog.mapreduce.TestSequenceFileReadWrite.testTextTableWriteRead org.apache.hive.hcatalog.mapreduce.TestSequenceFileReadWrite.testSequenceTableWriteReadMR org.apache.hive.hcatalog.mapreduce.TestSequenceFileReadWrite.testTextTableWriteReadMR Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/651/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/651/console Messages: Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests failed with: TestsFailedException: 5 tests failed This message is automatically generated.
          Hide
          Jason Dere added a comment -

          Both TestHCatExternalDynamicPartitioned and TestSequenceFileReadWrite run fine on my setup.

          Show
          Jason Dere added a comment - Both TestHCatExternalDynamicPartitioned and TestSequenceFileReadWrite run fine on my setup.
          Hide
          Ashutosh Chauhan added a comment -

          +1

          Show
          Ashutosh Chauhan added a comment - +1
          Hide
          Ashutosh Chauhan added a comment -

          Committed to trunk. Thanks, Jason!

          Show
          Ashutosh Chauhan added a comment - Committed to trunk. Thanks, Jason!
          Hide
          Hudson added a comment -

          FAILURE: Integrated in Hive-trunk-hadoop2-ptest #89 (See https://builds.apache.org/job/Hive-trunk-hadoop2-ptest/89/)
          HIVE-5239 : LazyDate goes into irretrievable NULL mode once inited with NULL once (Jason Dere via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1521136)

          • /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyDate.java
          • /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazyPrimitive.java
          Show
          Hudson added a comment - FAILURE: Integrated in Hive-trunk-hadoop2-ptest #89 (See https://builds.apache.org/job/Hive-trunk-hadoop2-ptest/89/ ) HIVE-5239 : LazyDate goes into irretrievable NULL mode once inited with NULL once (Jason Dere via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1521136 ) /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyDate.java /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazyPrimitive.java
          Hide
          Hudson added a comment -

          FAILURE: Integrated in Hive-trunk-hadoop1-ptest #157 (See https://builds.apache.org/job/Hive-trunk-hadoop1-ptest/157/)
          HIVE-5239 : LazyDate goes into irretrievable NULL mode once inited with NULL once (Jason Dere via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1521136)

          • /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyDate.java
          • /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazyPrimitive.java
          Show
          Hudson added a comment - FAILURE: Integrated in Hive-trunk-hadoop1-ptest #157 (See https://builds.apache.org/job/Hive-trunk-hadoop1-ptest/157/ ) HIVE-5239 : LazyDate goes into irretrievable NULL mode once inited with NULL once (Jason Dere via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1521136 ) /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyDate.java /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazyPrimitive.java
          Hide
          Hudson added a comment -

          FAILURE: Integrated in Hive-trunk-h0.21 #2322 (See https://builds.apache.org/job/Hive-trunk-h0.21/2322/)
          HIVE-5239 : LazyDate goes into irretrievable NULL mode once inited with NULL once (Jason Dere via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1521136)

          • /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyDate.java
          • /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazyPrimitive.java
          Show
          Hudson added a comment - FAILURE: Integrated in Hive-trunk-h0.21 #2322 (See https://builds.apache.org/job/Hive-trunk-h0.21/2322/ ) HIVE-5239 : LazyDate goes into irretrievable NULL mode once inited with NULL once (Jason Dere via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1521136 ) /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyDate.java /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazyPrimitive.java
          Hide
          Hudson added a comment -

          ABORTED: Integrated in Hive-trunk-hadoop2 #419 (See https://builds.apache.org/job/Hive-trunk-hadoop2/419/)
          HIVE-5239 : LazyDate goes into irretrievable NULL mode once inited with NULL once (Jason Dere via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1521136)

          • /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyDate.java
          • /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazyPrimitive.java
          Show
          Hudson added a comment - ABORTED: Integrated in Hive-trunk-hadoop2 #419 (See https://builds.apache.org/job/Hive-trunk-hadoop2/419/ ) HIVE-5239 : LazyDate goes into irretrievable NULL mode once inited with NULL once (Jason Dere via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1521136 ) /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyDate.java /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazyPrimitive.java
          Hide
          Thejas M Nair added a comment -

          This is an important bug fix. I will commit it to 0.12 as well.

          Show
          Thejas M Nair added a comment - This is an important bug fix. I will commit it to 0.12 as well.
          Hide
          Thejas M Nair added a comment -

          Committed to 0.12 branch.

          Show
          Thejas M Nair added a comment - Committed to 0.12 branch.
          Hide
          Ashutosh Chauhan added a comment -

          This issue has been fixed and released as part of 0.12 release. If you find further issues, please create a new jira and link it to this one.

          Show
          Ashutosh Chauhan added a comment - This issue has been fixed and released as part of 0.12 release. If you find further issues, please create a new jira and link it to this one.

            People

            • Assignee:
              Jason Dere
              Reporter:
              Jason Dere
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development