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

Add a simple way to create a blob table

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.3.0
    • None
    • None

    Description

      A blob table has a single column of type string. We put all data from the row into that column.

      At present we are able to create blob table like this:

      CREATE TABLE blobTable1 (blob STRING)
        ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
        WITH SERDEPROPERTIES (
          'serialization.last.column.takes.rest'='true'
        )
        STORED AS TEXTFILE;
      
      CREATE TABLE blobTable1 (blob STRING)
        ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'
        WITH SERDEPROPERTIES (
          'serialization.last.column.takes.rest'='true'
        )
        STORED AS SEQUENCEFILE;
      

      We should add a simpler way to create such a table, since it's pretty popular.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            zshao Zheng Shao

            Dates

              Created:
              Updated:

              Slack

                Issue deployment