<?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: Overwriting a column in HIVE in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Overwriting-a-column-in-HIVE/m-p/109598#M72448</link>
    <description>&lt;P&gt;You cannot overwrite one column you need to recreate the whole table. Like in the CTAS discussion we had. So if your employees table has 10 columns you need something like&lt;/P&gt;&lt;P&gt;INSERT OVERWRITE TABLE employees SELECT employees.&amp;lt;all columns but salary_date&amp;gt;, salary.salary_date FROM salary employees WHERE salary.employee_number = employee.employee_number;&lt;/P&gt;&lt;P&gt;You also need to order the columns correctly like:&lt;/P&gt;&lt;P&gt;select e.id, e.date,salary.salary_date,e.name,e.lastname. .... &lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2016 18:36:15 GMT</pubDate>
    <dc:creator>bleonhardi</dc:creator>
    <dc:date>2016-04-21T18:36:15Z</dc:date>
  </channel>
</rss>

