Hive
  1. Hive
  2. HIVE-3398

Hive serde should support empty struct

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      Right now TypeInfoUtils expects at least one field in a STRUCT, which is not always true, e.g., empty struct is allowed in Thrift. We should modify TypeInfoUtils so that empty struct can be correctly processed.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        2d 6h 34m 1 Feng Peng 23/Aug/12 02:05
        Patch Available Patch Available Open Open
        85d 1h 32m 1 Ashutosh Chauhan 16/Nov/12 02:37
        Hide
        Allan Shoup added a comment -

        Any updates on applying this patch?

        Show
        Allan Shoup added a comment - Any updates on applying this patch?
        Hide
        Feng Peng added a comment -

        Sure, thanks for checking it out!

        Show
        Feng Peng added a comment - Sure, thanks for checking it out!
        Ashutosh Chauhan made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Fix Version/s 0.9.0 [ 12317742 ]
        Hide
        Ashutosh Chauhan added a comment -

        Patch doesn't apply cleanly anymore. Feng can you refresh the patch?

        Show
        Ashutosh Chauhan added a comment - Patch doesn't apply cleanly anymore. Feng can you refresh the patch?
        Hide
        Feng Peng added a comment -

        Posted patch on reviewboard: https://reviews.apache.org/r/7042/.

        Show
        Feng Peng added a comment - Posted patch on reviewboard: https://reviews.apache.org/r/7042/ .
        Feng Peng made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Fix Version/s 0.9.0 [ 12317742 ]
        Hide
        Feng Peng added a comment -

        The actual change is pretty simple. Most of the contents in the patch are caused by the change of the test thrift struct.

        Show
        Feng Peng added a comment - The actual change is pretty simple. Most of the contents in the patch are caused by the change of the test thrift struct.
        Hide
        Feng Peng added a comment -

        Patch attached.

        Show
        Feng Peng added a comment - Patch attached.
        Feng Peng made changes -
        Field Original Value New Value
        Attachment HIVE-3398_serde_empty_struct.patch [ 12542038 ]
        Feng Peng created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Feng Peng
          • Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:

              Development