Hive Serde将数据加载到单个列中

时间:2018-10-25 06:17:50

标签: hive

我使用下面的serde属性创建了一个外部表,

int.MaxValue

当我尝试加载数据时,要加载到单列中的以下值将移到下一行,如下所示,

数据将显示在单列中

    ROW FORMAT SERDE
    'org.apache.hadoop.hive.serde2.OpenCSVSerde'
WITH SERDEPROPERTIES (
    'separatorChar' = ',',
    'quoteChar' = '\"')

数据另存为

a列:

"{""t"":""xxxxxxxxx"",""mi_u"":""anon-xxxxxxxxxxx"",""mi_cid"":""xxxx"",""page_title"":""120 pages: Skip line ruling, 1/2\"" writing space, dotted midline, 1/4\"" black cover. Journals, Paperback | xxxxxxxx""}"

b列:

{""t"":""xxxxxxxxx"",""mi_u"":""anon-xxxxxxxxxxx"",""mi_cid"":""xxxx"",""page_title"":""120 pages: Skip line ruling, 1/2"" writing space

列c:

dotted midline

我希望整个数据都在列a中。

请告知我如何修改此Serde以便将数据容纳到单个列中。

谢谢!。

0 个答案:

没有答案