[
https://issues.apache.org/jira/browse/HIVE-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16505701#comment-16505701
]
Charles Pritchard commented on HIVE-637:
----------------------------------------
I just hit this ancient issue, with a bunch of very small files uploaded into a
bucket – all I'm looking to do is create external table derp (data blob)
location '/bad/place' as I will be running a select __INPUT_FILE_NAME_, data
command subsequent.
> Add a simple way to create a blob table
> ---------------------------------------
>
> Key: HIVE-637
> URL: https://issues.apache.org/jira/browse/HIVE-637
> Project: Hive
> Issue Type: New Feature
> Components: Serializers/Deserializers
> Affects Versions: 0.3.0
> Reporter: Zheng Shao
> Priority: Major
>
> 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:
> {code}
> 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;
> {code}
> We should add a simpler way to create such a table, since it's pretty popular.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)