<?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 Is it possible to delete a relation in pig? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-it-possible-to-delete-a-relation-in-pig/m-p/147140#M28274</link>
    <description>&lt;P&gt;I created a relation like &lt;/P&gt;&lt;PRE&gt;A = Load from 'soemtable' using org.apache.hive.hcatalog.pig.HCatLoader();

A_Filtered = FILTER A BY Col1 == 1 ;&lt;/PRE&gt;&lt;P&gt;Now I changed the underlying table structure in Hive and so get the proper data type reflected in relation "A" I ran the same command again to create A.  I changed the column type of Col1 from Int to String.&lt;/P&gt;&lt;PRE&gt;A = Load from 'soemtable' using org.apache.hive.hcatalog.pig.HCatLoader();&lt;/PRE&gt;&lt;P&gt;Now when I created this relation, I understand that A_Filtered becomes invalid. So I got below error when I tried to create A again. But I am unable to even create the same A_Filtered relation again or any relation at all with new definition, I am getting this error at all time that the relation A_Filtered has different data types in equal operator.  &lt;/P&gt;&lt;P&gt;How to fix this? Can I delete the relation so that it does not occur? This will be cleared once I exit grunt shell and login again. But I wanted to know how to fix this without exiting the shell, is it possible? &lt;/P&gt;&lt;PRE&gt;2016-05-13 12:32:02,354 [main] INFO  org.apache.hadoop.conf.Configuration.deprecation - fs.default.name is deprecated. Instead, use fs.defaultFS
2016-05-13 12:32:02,403 [main] WARN  org.apache.hadoop.hive.conf.HiveConf - HiveConf of name hive.metastore.pre-event.listeners does not exist
2016-05-13 12:32:02,403 [main] WARN  org.apache.hadoop.hive.conf.HiveConf - HiveConf of name hive.semantic.analyzer.factory.impl does not exist
2016-05-13 12:32:02,425 [main] INFO  hive.metastore - Connected to metastore.
2016-05-13 12:32:02,519 [main] INFO  org.apache.hadoop.conf.Configuration.deprecation - fs.default.name is deprecated. Instead, use fs.defaultFS
2016-05-13 12:32:02,553 [main] INFO  org.apache.hadoop.conf.Configuration.deprecation - fs.default.name is deprecated. Instead, use fs.defaultFS
2016-05-13 12:32:02,603 [main] WARN  org.apache.hadoop.hive.conf.HiveConf - HiveConf of name hive.metastore.pre-event.listeners does not exist
2016-05-13 12:32:02,604 [main] WARN  org.apache.hadoop.hive.conf.HiveConf - HiveConf of name hive.semantic.analyzer.factory.impl does not exist
2016-05-13 12:32:02,666 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039:
&amp;lt;line 2, column 56&amp;gt; In alias A_Filtered, incompatible types in Equal Operator left hand side:chararray right hand side:int&lt;/PRE&gt;</description>
    <pubDate>Sat, 14 May 2016 00:59:10 GMT</pubDate>
    <dc:creator>mraghuram_87</dc:creator>
    <dc:date>2016-05-14T00:59:10Z</dc:date>
    <item>
      <title>Is it possible to delete a relation in pig?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-it-possible-to-delete-a-relation-in-pig/m-p/147140#M28274</link>
      <description>&lt;P&gt;I created a relation like &lt;/P&gt;&lt;PRE&gt;A = Load from 'soemtable' using org.apache.hive.hcatalog.pig.HCatLoader();

A_Filtered = FILTER A BY Col1 == 1 ;&lt;/PRE&gt;&lt;P&gt;Now I changed the underlying table structure in Hive and so get the proper data type reflected in relation "A" I ran the same command again to create A.  I changed the column type of Col1 from Int to String.&lt;/P&gt;&lt;PRE&gt;A = Load from 'soemtable' using org.apache.hive.hcatalog.pig.HCatLoader();&lt;/PRE&gt;&lt;P&gt;Now when I created this relation, I understand that A_Filtered becomes invalid. So I got below error when I tried to create A again. But I am unable to even create the same A_Filtered relation again or any relation at all with new definition, I am getting this error at all time that the relation A_Filtered has different data types in equal operator.  &lt;/P&gt;&lt;P&gt;How to fix this? Can I delete the relation so that it does not occur? This will be cleared once I exit grunt shell and login again. But I wanted to know how to fix this without exiting the shell, is it possible? &lt;/P&gt;&lt;PRE&gt;2016-05-13 12:32:02,354 [main] INFO  org.apache.hadoop.conf.Configuration.deprecation - fs.default.name is deprecated. Instead, use fs.defaultFS
2016-05-13 12:32:02,403 [main] WARN  org.apache.hadoop.hive.conf.HiveConf - HiveConf of name hive.metastore.pre-event.listeners does not exist
2016-05-13 12:32:02,403 [main] WARN  org.apache.hadoop.hive.conf.HiveConf - HiveConf of name hive.semantic.analyzer.factory.impl does not exist
2016-05-13 12:32:02,425 [main] INFO  hive.metastore - Connected to metastore.
2016-05-13 12:32:02,519 [main] INFO  org.apache.hadoop.conf.Configuration.deprecation - fs.default.name is deprecated. Instead, use fs.defaultFS
2016-05-13 12:32:02,553 [main] INFO  org.apache.hadoop.conf.Configuration.deprecation - fs.default.name is deprecated. Instead, use fs.defaultFS
2016-05-13 12:32:02,603 [main] WARN  org.apache.hadoop.hive.conf.HiveConf - HiveConf of name hive.metastore.pre-event.listeners does not exist
2016-05-13 12:32:02,604 [main] WARN  org.apache.hadoop.hive.conf.HiveConf - HiveConf of name hive.semantic.analyzer.factory.impl does not exist
2016-05-13 12:32:02,666 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039:
&amp;lt;line 2, column 56&amp;gt; In alias A_Filtered, incompatible types in Equal Operator left hand side:chararray right hand side:int&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 May 2016 00:59:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-it-possible-to-delete-a-relation-in-pig/m-p/147140#M28274</guid>
      <dc:creator>mraghuram_87</dc:creator>
      <dc:date>2016-05-14T00:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete a relation in pig?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-it-possible-to-delete-a-relation-in-pig/m-p/147141#M28275</link>
      <description>&lt;P&gt;Once you changed it, try using &lt;/P&gt;&lt;P&gt;A_Filtered = FILTER A BY Col1 == '1';&lt;/P&gt;&lt;P&gt;From the error, it shows that right hand side is a number and not a string. Use '' to search for a string and this will work. &lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 01:15:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-it-possible-to-delete-a-relation-in-pig/m-p/147141#M28275</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-05-14T01:15:35Z</dc:date>
    </item>
  </channel>
</rss>

