<?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: Handing nullls as alias at pig level in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Handing-nullls-as-alias-at-pig-level/m-p/145402#M52523</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11938/kumarvaibhav1992.html" nodeid="11938"&gt;@Vaibhav Kumar&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;If you want to create a bag matching target table's structure, you can do as following:&lt;/P&gt;&lt;PRE&gt;a = load 'file.csv' as PigStorage(',') as (x,y,w);
b = foreach a generate x, y, (int)null as z, w;
describe b;
--    b: {x: int,y: int,z: int,w: int}&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Jan 2017 22:38:25 GMT</pubDate>
    <dc:creator>eberezitsky</dc:creator>
    <dc:date>2017-01-26T22:38:25Z</dc:date>
    <item>
      <title>Handing nullls as alias at pig level</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Handing-nullls-as-alias-at-pig-level/m-p/145401#M52522</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have my table structure and  in hive like below .&lt;/P&gt;&lt;P&gt;Create table hv (x int,y int,z int ,w int )&lt;/P&gt;&lt;P&gt;PIGLATIN used to load the table&lt;/P&gt;&lt;P&gt;A  = LOAD 'XYZ.CSV.GZ' using pigstorage AS (x,y,w)&lt;/P&gt;&lt;P&gt;this time  Z col  is missing from the file so i wan to keep the value of z as null in PIGLATIN and i donot want to change my hive table structure .How to generate the values as null for this column in pig??&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 15:43:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Handing-nullls-as-alias-at-pig-level/m-p/145401#M52522</guid>
      <dc:creator>kumarvaibhav199</dc:creator>
      <dc:date>2017-01-25T15:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Handing nullls as alias at pig level</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Handing-nullls-as-alias-at-pig-level/m-p/145402#M52523</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11938/kumarvaibhav1992.html" nodeid="11938"&gt;@Vaibhav Kumar&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;If you want to create a bag matching target table's structure, you can do as following:&lt;/P&gt;&lt;PRE&gt;a = load 'file.csv' as PigStorage(',') as (x,y,w);
b = foreach a generate x, y, (int)null as z, w;
describe b;
--    b: {x: int,y: int,z: int,w: int}&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 22:38:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Handing-nullls-as-alias-at-pig-level/m-p/145402#M52523</guid>
      <dc:creator>eberezitsky</dc:creator>
      <dc:date>2017-01-26T22:38:25Z</dc:date>
    </item>
  </channel>
</rss>

