Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.3.0
    • Component/s: Query Processor
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Casting to and from short does not work.

      1. patch-68.txt
        24 kB
        Ashish Thusoo

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        1h 10m 1 Ashish Thusoo 18/Nov/08 03:28
        Patch Available Patch Available Resolved Resolved
        22h 29m 1 dhruba borthakur 19/Nov/08 01:58
        Resolved Resolved Closed Closed
        1122d 22h 10m 1 Carl Steinbach 17/Dec/11 00:08
        Carl Steinbach made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Carl Steinbach made changes -
        Fix Version/s 0.3.0 [ 12313637 ]
        Fix Version/s 0.6.0 [ 12314524 ]
        Component/s Query Processor [ 12312586 ]
        Zheng Shao made changes -
        Fix Version/s 0.6.0 [ 12314524 ]
        Fix Version/s 0.2.0 [ 12313565 ]
        dhruba borthakur made changes -
        Resolution Fixed [ 1 ]
        Hadoop Flags [Reviewed]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hide
        dhruba borthakur added a comment -

        I just committed this. Thanks Ashish!

        Show
        dhruba borthakur added a comment - I just committed this. Thanks Ashish!
        Hide
        Namit Jain added a comment -

        +1

        Show
        Namit Jain added a comment - +1
        Ashish Thusoo made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Fix Version/s 0.20.0 [ 12313506 ]
        Affects Version/s 0.20.0 [ 12313506 ]
        Hide
        Ashish Thusoo added a comment -

        Ran the tests and the tail is as follows:

        [junit] Test testTBinarySortableProtocol passed!
        [junit] bytes in text =234 firstStringsecondString firstKey1secondKey2>
        [junit] compare to =234 firstStringsecondString firstKey1secondKey2>
        [junit] o class = class java.util.ArrayList
        [junit] o size = 3
        [junit] o[0] class = class java.lang.Integer
        [junit] o[1] class = class java.util.ArrayList
        [junit] o[2] class = class java.util.HashMap
        [junit] o = [234, [firstString, secondString],

        {firstKey=1, secondKey=2}]
        [junit] bytes in text =234 firstStringsecondString firstKey1secondKey2>
        [junit] compare to =234 firstStringsecondString firstKey1secondKey2>
        [junit] o class = class java.util.ArrayList
        [junit] o size = 3
        [junit] o = [234, null, {firstKey=1, secondKey=2}

        ]
        [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 0.434 sec
        [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestObjectInspectorUtils
        [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.173 sec
        [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestReflectionObjectInspectors
        [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.166 sec
        [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestStandardObjectInspectors
        [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.163 sec
        [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestThriftObjectInspectors
        [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.172 sec
        [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestUnionStructObjectInspector
        [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.159 sec

        BUILD SUCCESSFUL
        Total time: 13 minutes 12 seconds

        Show
        Ashish Thusoo added a comment - Ran the tests and the tail is as follows: [junit] Test testTBinarySortableProtocol passed! [junit] bytes in text =234 firstStringsecondString firstKey1secondKey2> [junit] compare to =234 firstStringsecondString firstKey1secondKey2> [junit] o class = class java.util.ArrayList [junit] o size = 3 [junit] o [0] class = class java.lang.Integer [junit] o [1] class = class java.util.ArrayList [junit] o [2] class = class java.util.HashMap [junit] o = [234, [firstString, secondString] , {firstKey=1, secondKey=2}] [junit] bytes in text =234 firstStringsecondString firstKey1secondKey2> [junit] compare to =234 firstStringsecondString firstKey1secondKey2> [junit] o class = class java.util.ArrayList [junit] o size = 3 [junit] o = [234, null, {firstKey=1, secondKey=2} ] [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 0.434 sec [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestObjectInspectorUtils [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.173 sec [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestReflectionObjectInspectors [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.166 sec [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestStandardObjectInspectors [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.163 sec [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestThriftObjectInspectors [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.172 sec [junit] Running org.apache.hadoop.hive.serde2.objectinspector.TestUnionStructObjectInspector [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.159 sec BUILD SUCCESSFUL Total time: 13 minutes 12 seconds
        Ashish Thusoo made changes -
        Attachment patch-68.txt [ 12394127 ]
        Hide
        Ashish Thusoo added a comment -

        submitted patch.

        Show
        Ashish Thusoo added a comment - submitted patch.
        Ashish Thusoo made changes -
        Attachment patch-60.txt [ 12394126 ]
        Ashish Thusoo made changes -
        Field Original Value New Value
        Attachment patch-60.txt [ 12394126 ]
        Hide
        Ashish Thusoo added a comment -

        Patch uploaded.

        Show
        Ashish Thusoo added a comment - Patch uploaded.
        Hide
        Ashish Thusoo added a comment -

        Using cast to cast from or to short gives a null pointer exception. Short is the same as SMALLINT in the language.

        Show
        Ashish Thusoo added a comment - Using cast to cast from or to short gives a null pointer exception. Short is the same as SMALLINT in the language.
        Ashish Thusoo created issue -

          People

          • Assignee:
            Ashish Thusoo
            Reporter:
            Ashish Thusoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development