<?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 Overwriting a column in HIVE in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Overwriting-a-column-in-HIVE/m-p/109597#M72447</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I need to overwrite a column in a HIVE table with data from another HIVE table.&lt;/P&gt;&lt;P&gt;In my exemple I have a a table employees and a table salary. I need to overwrite just ONE column of the employees table....let's a say a from start_date with values from called salary_date in the salary table. Both salary and employees table have a a common key which is the coluns employee_number. &lt;/P&gt;&lt;P&gt;Here is what I have been trying to do without success. &lt;/P&gt;&lt;P&gt;     INSERT OVERWRITE TABLE employees SELECT employees.start_date salary.salary_date FROM salary employees WHERE salary.employee_number =  employee.employee_number&lt;/P&gt;&lt;P&gt;Any insights on where I might be making a mistake here would help. I see some exemples suggesting to use partitions but I am not sure how to use this in this case, as I  am considering to overwrite the whole start_date column and not just some values. &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Wellington&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2016 18:14:17 GMT</pubDate>
    <dc:creator>junnnninho</dc:creator>
    <dc:date>2016-04-21T18:14:17Z</dc:date>
  </channel>
</rss>

