<?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 Re: I have few column to make external table in hive from csv file but some column is empty what data type I need to define or leave it empty? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108456#M21776</link>
    <description>&lt;P&gt;Thanks to all &lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 23:41:32 GMT</pubDate>
    <dc:creator>vijaysvnit2005</dc:creator>
    <dc:date>2016-03-03T23:41:32Z</dc:date>
    <item>
      <title>I have few column to make external table in hive from csv file but some column is empty what data type I need to define or leave it empty?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108454#M21774</link>
      <description>&lt;P&gt;I have trouble to create external table in hive&lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE IF NOT EXISTS DB.TableName(
  SOURCE_ID                                VARCHAR(30)
, SOURCE_ID_TYPE                        VARCHAR(30)
, SOURCE_NAME                            VARCHAR(30)
, DEVICE_ID_1                            VARCHAR(30)&lt;/P&gt;&lt;P&gt;)
 ROW FORMAT DELIMITED 
 FIELDS TERMINATED BY '|'  
 STORED AS TEXTFILE
 location 'hdfs:///user/hive';&lt;/P&gt;&lt;P&gt;column name SOURCE_NAME IS EMPTY(null) &lt;/P&gt;&lt;P&gt;I am failed to create the external table can you help me where I do mistake?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 22:13:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108454#M21774</guid>
      <dc:creator>vijaysvnit2005</dc:creator>
      <dc:date>2016-03-03T22:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: I have few column to make external table in hive from csv file but some column is empty what data type I need to define or leave it empty?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108455#M21775</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3144/vijaysvnit2005.html" nodeid="3144"&gt;@mike pal&lt;/A&gt; &lt;/P&gt;&lt;P&gt;You probably need to convert empty values into NULL, add below option while creating table.&lt;/P&gt;&lt;P&gt;EDITED: Full DDL.&lt;/P&gt;&lt;PRE&gt;CREATE EXTERNAL TABLE IF NOT EXISTS DB.TableName(SOURCE_ID VARCHAR(30) ,SOURCE_ID_TYPE VARCHAR(30) ,SOURCE_NAME VARCHAR(30) ,DEVICE_ID_1 VARCHAR(30)) ROW FORMAT DELIMITED FIELDS TERMINATED BY '|' STORED AS TEXTFILE location 'hdfs:///user/hive' TBLPROPERTIES ('serialization.null.format'='');

&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Mar 2016 23:41:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108455#M21775</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-03-03T23:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: I have few column to make external table in hive from csv file but some column is empty what data type I need to define or leave it empty?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108456#M21776</link>
      <description>&lt;P&gt;Thanks to all &lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 23:41:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108456#M21776</guid>
      <dc:creator>vijaysvnit2005</dc:creator>
      <dc:date>2016-03-03T23:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: I have few column to make external table in hive from csv file but some column is empty what data type I need to define or leave it empty?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108457#M21777</link>
      <description>&lt;P&gt;Can you write full create table what looks like if you can I really apreciated &lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 23:55:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108457#M21777</guid>
      <dc:creator>vijaysvnit2005</dc:creator>
      <dc:date>2016-03-03T23:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: I have few column to make external table in hive from csv file but some column is empty what data type I need to define or leave it empty?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108458#M21778</link>
      <description>&lt;P&gt;I edited my answer with DDL, hope that will help. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 02:25:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108458#M21778</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-03-04T02:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: I have few column to make external table in hive from csv file but some column is empty what data type I need to define or leave it empty?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108459#M21779</link>
      <description>&lt;P&gt;Thanks Jitendra&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 05:43:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-few-column-to-make-external-table-in-hive-from-csv/m-p/108459#M21779</guid>
      <dc:creator>vijaysvnit2005</dc:creator>
      <dc:date>2016-03-04T05:43:33Z</dc:date>
    </item>
  </channel>
</rss>

