title: Hive Table returning empty result set on all queries
body: <p>I created a Hive Table, which loads data from a text file. But its returning empty result set on all queries. </p>
  
  <p>I tried the following command:</p>
  
  <pre><code>CREATE TABLE table2(
  id1 INT,
  id2 INT,
  id3 INT,
  id4 STRING,
  id5 INT,
  id6 STRING,
  id7 STRING,
  id8 STRING,
  id9 STRING,
  id10 STRING,
  id11 STRING,
  id12 STRING,
  id13 STRING,
  id14 STRING,
  id15 STRING
  )
  ROW FORMAT DELIMITED
  FIELDS TERMINATED BY '|'
  STORED AS TEXTFILE
  LOCATION '/user/biadmin/lineitem';
  </code></pre>
  
  <p>The command gets executed, and the table gets created. But, always returns 0 rows for all queries, including <code>SELECT * FROM table2;</code></p>
  
  <p>Sample data:</p>
  
  <p>Single line of the input data:</p>
  
  <p>1|155190|7706|1|17|21168.23|0.04|0.02|N|O|1996-03-13|1996-02-12|1996-03-22|DELIVER IN PERSON|TRUCK|egular courts above the|</p>
  
  <p>I have attached the screen shot of the data file. 
  Output for command: DESCRIBE FORMATTED table2;</p>
  
  <pre><code>| Wed Apr 16 20:18:58 IST 2014 : Connection obtained for host: big-instght-15.persistent.co.in, port number 1528. |
  | # col_name                    data_type                   comment                                               |
  |                                                                                                                 |
  | id1                         int                         None                                                    |
  | id2                         int                         None                                                    |
  | id3                         int                         None                                                    |
  | id4                         string                      None                                                    |
  | id5                         int                         None                                                    |
  | id6                         string                      None                                                    |
  | id7                         string                      None                                                    |
  | id8                         string                      None                                                    |
  | id9                         string                      None                                                    |
  | id10                        string                      None                                                    |
  | id11                        string                      None                                                    |
  | id12                        string                      None                                                    |
  | id13                        string                      None                                                    |
  | id14                        string                      None                                                    |
  | id15                        string                      None                                                    |
  |                                                                                                                 |
  | # Detailed Table Information                                                                                    |
  | Database:                   default                                                                             |
  | Owner:                      biadmin                                                                             |
  | CreateTime:                 Mon Apr 14 20:17:31 IST 2014                                                        |
  | LastAccessTime:             UNKNOWN                                                                             |
  | Protect Mode:               None                                                                                |
  | Retention:                  0                                                                                   |
  | Location:                   hdfs://big-instght-11.persistent.co.in:9000/user/biadmin/lineitem                 |
  | Table Type:                 MANAGED_TABLE                                                                       |
  | Table Parameters:                                                                                               |
  |         serialization.null.format                                                                               |
  |         transient_lastDdlTime        1397486851                                                                 |
  |                                                                                                                 |
  | # Storage Information                                                                                           |
  | SerDe Library:              org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe                                  |
  | InputFormat:                org.apache.hadoop.mapred.TextInputFormat                                            |
  | OutputFormat:               org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat                          |
  | Compressed:                 No                                                                                  |
  | Num Buckets:                -1                                                                                  |
  | Bucket Columns:             []                                                                                  |
  | Sort Columns:               []                                                                                  |
  | Storage Desc Params:                                                                                            |
  |         field.delim                 |                                                                          |
  </code></pre>
  
  <p>+-----------------------------------------------------------------------------------------------------------------+</p>
  
  <p>Thanks!</p>