<?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: Impala table definition in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Impala-table-definition/m-p/66666#M13689</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/24935"&gt;@toamitjain&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Firstly, I advice you to create the external -TEXTFILE- table too in &lt;U&gt;impala&lt;/U&gt; (&lt;EM&gt;it's faster to create it in hive!&lt;/EM&gt;).&lt;/P&gt;&lt;PRE&gt;CREATE EXTERNAL TABLE table1 (columns def)
ROW FORMAT DELIMITED FIELDS TERMINATED BY ','
LOCATION 'hdfs_path';&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;1- Because of your initial hdfs file probably is a text format file while the parquet tables use the parquet format, so you have do this recreation to enssure the &lt;STRONG&gt;convertision TEXT=&amp;gt;PARQUET&lt;/STRONG&gt; (but if your HDFS files are already in parquet format you can create an direct external parquet table on it..).&lt;BR /&gt;&lt;BR /&gt;2- E&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;xcept the &lt;STRONG&gt;slowness&lt;/STRONG&gt; of your &lt;STRONG&gt;queries&lt;/STRONG&gt; (because parquet table is very fast than text table) there is no issue, just the &lt;STRONG&gt;table&lt;/STRONG&gt; and &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;the &lt;STRONG&gt;hdfs&lt;/STRONG&gt; files will be &lt;STRONG&gt;separated&lt;/STRONG&gt;..&lt;BR /&gt;&lt;BR /&gt;3- I think storing the date on&amp;nbsp;&lt;STRONG&gt;timestamps&lt;/STRONG&gt; is more profetionnal, so you can benifit from the timestamp &lt;STRONG&gt;functions&lt;/STRONG&gt;..&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2018 10:05:21 GMT</pubDate>
    <dc:creator>AcharkiMed</dc:creator>
    <dc:date>2018-04-24T10:05:21Z</dc:date>
  </channel>
</rss>

