<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Hive- how to escape field delimiter in column value to upload sql queries in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-how-to-escape-field-delimiter-in-column-value-to-upload/m-p/299465#M219692</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to upload logs into a Hive external table. Some records contain queries which have multiple columns in them, but commas are also the field delimiters. Other questions here recommend using&amp;nbsp;&lt;SPAN&gt;org.apache.hadoop.hive.serde2.OpenCSVSerde. So I used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;STORED AS TEXTFILE&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;LOCATION 'hdfs://hdfs/path/to/directory/external/2020Jun30'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;TBLPROPERTIES ('skip.header.line.count'='1');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This didn't deal with the additional non-escaped commas in the log file though. So I tried:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;WITH SERDEPROPERTIES (&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&amp;nbsp; "separatorChar" = ",",&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&amp;nbsp; "quoteChar"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = '"',&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&amp;nbsp; "escapeChar"&amp;nbsp;&amp;nbsp;&amp;nbsp; = "\\"&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;STORED AS TEXTFILE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, in Hue I get this error when using org.apache.hadoop.hive.serde2.OpenCSVSerde:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AnalysisException: Failed to load metadata for table: 'db.ext_table' CAUSED BY: TableLoadingException: Failed to load metadata for table: db.ext_table CAUSED BY: InvalidStorageDescriptorException: Impala does not support tables of this type. REASON: SerDe library 'org.apache.hadoop.hive.serde2.OpenCSVSerde' is not supported.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can read from the table via beeline, but not via Hue. Is this something (a library?) that I need to add to Hue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or do I need to create the table in some other way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I deal with sql query commas in a comma delimitered log file?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 11:27:41 GMT</pubDate>
    <dc:creator>getschwifty</dc:creator>
    <dc:date>2026-04-21T11:27:41Z</dc:date>
    <item>
      <title>Hive- how to escape field delimiter in column value to upload sql queries</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-how-to-escape-field-delimiter-in-column-value-to-upload/m-p/299465#M219692</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to upload logs into a Hive external table. Some records contain queries which have multiple columns in them, but commas are also the field delimiters. Other questions here recommend using&amp;nbsp;&lt;SPAN&gt;org.apache.hadoop.hive.serde2.OpenCSVSerde. So I used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;STORED AS TEXTFILE&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;LOCATION 'hdfs://hdfs/path/to/directory/external/2020Jun30'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;TBLPROPERTIES ('skip.header.line.count'='1');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This didn't deal with the additional non-escaped commas in the log file though. So I tried:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;WITH SERDEPROPERTIES (&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&amp;nbsp; "separatorChar" = ",",&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&amp;nbsp; "quoteChar"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = '"',&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&amp;nbsp; "escapeChar"&amp;nbsp;&amp;nbsp;&amp;nbsp; = "\\"&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;STORED AS TEXTFILE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, in Hue I get this error when using org.apache.hadoop.hive.serde2.OpenCSVSerde:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AnalysisException: Failed to load metadata for table: 'db.ext_table' CAUSED BY: TableLoadingException: Failed to load metadata for table: db.ext_table CAUSED BY: InvalidStorageDescriptorException: Impala does not support tables of this type. REASON: SerDe library 'org.apache.hadoop.hive.serde2.OpenCSVSerde' is not supported.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can read from the table via beeline, but not via Hue. Is this something (a library?) that I need to add to Hue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or do I need to create the table in some other way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I deal with sql query commas in a comma delimitered log file?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 11:27:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-how-to-escape-field-delimiter-in-column-value-to-upload/m-p/299465#M219692</guid>
      <dc:creator>getschwifty</dc:creator>
      <dc:date>2026-04-21T11:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hive- how to escape field delimiter in column value to upload sql queries</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-how-to-escape-field-delimiter-in-column-value-to-upload/m-p/299467#M219694</link>
      <description>&lt;P&gt;So the answer is the&amp;nbsp;&lt;/P&gt;&lt;P&gt;'org.apache.hadoop.hive.serde2.OpenCSVSerde' isn't supported in Impala, but it is in Hive.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 04:04:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-how-to-escape-field-delimiter-in-column-value-to-upload/m-p/299467#M219694</guid>
      <dc:creator>getschwifty</dc:creator>
      <dc:date>2020-07-10T04:04:27Z</dc:date>
    </item>
  </channel>
</rss>

