[jira] [Comment Edited] (HIVE-637) Add a simple way to create a blob table

2018-06-07 Thread Charles Pritchard (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16505701#comment-16505701
 ] 

Charles Pritchard edited comment on HIVE-637 at 6/8/18 4:55 AM:


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.

It may be resolved by org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
  


was (Author: downchuck):
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.

It may be resolved by org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
 

> 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)


[jira] [Comment Edited] (HIVE-637) Add a simple way to create a blob table

2018-06-07 Thread Charles Pritchard (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16505701#comment-16505701
 ] 

Charles Pritchard edited comment on HIVE-637 at 6/8/18 4:49 AM:


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.

It may be resolved by org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
 


was (Author: downchuck):
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)