<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.java.hadoop.pig.devel">
    <title>gmane.comp.java.hadoop.pig.devel</title>
    <link>http://blog.gmane.org/gmane.comp.java.hadoop.pig.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31552"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31551"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31550"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31549"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31548"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31547"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31546"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31545"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31544"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31543"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31542"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31541"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31540"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31539"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31538"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31537"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31536"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31535"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31534"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31533"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31552">
    <title>Subscription: PIG patch available</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31552</link>
    <description>&lt;pre&gt;Issue Subscription
Filter: PIG patch available (15 issues)

Subscriber: pigdaily
        
Key         Summary
PIG-3346    New property that controls the number of combined splits
            https://issues.apache.org/jira/browse/PIG-3346
PIG-3333    Fix remaining Windows core unit test failures
            https://issues.apache.org/jira/browse/PIG-3333
PIG-3295    Casting from bytearray failing after Union (even when each field is from a single Loader)
            https://issues.apache.org/jira/browse/PIG-3295
PIG-3292    Logical plan invalid state: duplicate uid in schema during self-join to get cross product
            https://issues.apache.org/jira/browse/PIG-3292
PIG-3288    Kill jobs if the number of output files is over a configurable limit
            https://issues.apache.org/jira/browse/PIG-3288
PIG-3257    Add unique identifier UDF
            https://issues.apache.org/jira/browse/PIG-3257
PIG-3247    Piggybank functions to mimic OVER clause in SQL
            https://issues.apache.org/jira/browse/PIG-3247
PIG-3210    Pig fails to start when it cannot write log to log files
            https://issues.apache.org/jira/browse/PIG-3210
PIG-3199    Expose LogicalPlan via PigServer API
            https://issues.apache.org/jira/browse/PIG-3199
PIG-3166    Update eclipse .classpath according to ivy library.properties
            https://issues.apache.org/jira/browse/PIG-3166
PIG-3123    Simplify Logical Plans By Removing Unneccessary Identity Projections
            https://issues.apache.org/jira/browse/PIG-3123
PIG-3088    Add a builtin udf which removes prefixes
            https://issues.apache.org/jira/browse/PIG-3088
PIG-3015    Rewrite of AvroStorage
            https://issues.apache.org/jira/browse/PIG-3015
PIG-2248    Pig parser does not detect when a macro name masks a UDF name
            https://issues.apache.org/jira/browse/PIG-2248
PIG-1914    Support load/store JSON data in Pig
            https://issues.apache.org/jira/browse/PIG-1914

You may edit this subscription at:
https://issues.apache.org/jira/secure/FilterSubscription!default.jspa?subId=13225&amp;amp;filterId=12322384

&lt;/pre&gt;</description>
    <dc:creator>jira-1oDqGaOF3Lkdnm+yROfE0A&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2013-06-20T01:02:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31551">
    <title>Re: Improving macros</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31551</link>
    <description>&lt;pre&gt;Jon is right. I am trying to ensure that each line is mostly parsed only
once in https://issues.apache.org/jira/browse/PIG-3204. Have few issues
with other commands in pig script like fs, shell, cd, illustrate, error
messages not showing line numbers properly, etc which I have not got to
solving yet. Register and import command file localization should be done
only once with my patch as the parsing happens only once (unless you have
fs or sh commands). Will check it out to be doubly sure.

Regards,
Rohini


On Wed, Jun 19, 2013 at 1:03 PM, Jonathan Coveney &amp;lt;jcoveney-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;wrote:

&lt;/pre&gt;</description>
    <dc:creator>Rohini Palaniswamy</dc:creator>
    <dc:date>2013-06-19T21:36:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31550">
    <title>Re: Improving macros</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31550</link>
    <description>&lt;pre&gt;This sounds excellent! Would love to see this in trunk.

As far as #3, this is probably because pig does essentially reparse
everything with each new line. I know there is a ticket where Rohini dealt
with this in some cases where HDFS was being hit multiple times because of
load statements getting reparsed, but I'm not sure if remote imports are
fixed by that patch as well.


2013/6/19 Jonathan Packer &amp;lt;jpacker-TPSCRWv7LJmzR313v1King&amp;lt; at &amp;gt;public.gmane.org&amp;gt;

&lt;/pre&gt;</description>
    <dc:creator>Jonathan Coveney</dc:creator>
    <dc:date>2013-06-19T20:03:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31549">
    <title>Improving macros</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31549</link>
    <description>&lt;pre&gt;Hi, I'm an engineer at Mortar Data. I was working on some features to
improve macros that I'd like to contribute (we're hoping to build a library
of reusable pig macros implementing common algorithms), but I wanted to
check-in here first to see if anyone has concerns about the changes I'd be
making.

The changes I've implemented are:

   1. Macro files can register jars and udfs (avoiding namespace conflicts
   is the user's responsibility)
   2. Macro files can be be redundantly imported (the extra import
   statements will be ignored). The use case is pigscript A imports macro
   files A and B, but A also imports B. Pig will emit a warning, but not fail
   as it currently does.
   3. Registers and imports from S3 aren't repeatedly downloaded as a
   pigscript is parsed. I'm not sure why it was doing this in the first place,
   but it looked like a query was being assembled line-by-line and every time
   it would re-download jars etc.

I was working on our fork of 0.9.2 with modifications, so please let me
know if any of these have already been fixed in the latest version.

Thanks,
Jonathan Packer
&lt;/pre&gt;</description>
    <dc:creator>Jonathan Packer</dc:creator>
    <dc:date>2013-06-19T17:59:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31548">
    <title>questions about roadmap</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31548</link>
    <description>&lt;pre&gt;Hi, I have some questions for you about roadmap..Please give me some advice.
 
Could you explain your public or private roadmap of  your open source  for years to come? We expect to know your development plan by year as detail as possible. 
(If you have no plan,please tell me your opinion.2013~2016) I want to know start and end time each technology. 
 
Thank you for giving me your time.
&lt;/pre&gt;</description>
    <dc:creator>박주현</dc:creator>
    <dc:date>2013-06-19T15:37:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31547">
    <title>[Commented] (PIG-3288) Kill jobs if the number of output files is over a configurable limit</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31547</link>
    <description>&lt;pre&gt;
    [ https://issues.apache.org/jira/browse/PIG-3288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;amp;focusedCommentId=13687624#comment-13687624 ] 

Aniket Mokashi commented on PIG-3288:
-------------------------------------

Implementation is generic that the counter need not count number of files. It can really count arbitrary metrics and kill the job if exceeded. Should we rename the counter from "pig.exec.created.files.max.limit" to something else?
Also, in the storefunc, you are relying on the fact that for each new file storefunc is reinitialize in a new object. Is it a guaranteed behavior?
                

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Aniket Mokashi (JIRA</dc:creator>
    <dc:date>2013-06-19T05:25:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31546">
    <title>[Commented] (PIG-3357) Pig doesn't take care of declared float type and converts it to double</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31546</link>
    <description>&lt;pre&gt;
    [ https://issues.apache.org/jira/browse/PIG-3357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;amp;focusedCommentId=13687481#comment-13687481 ] 

Cheolsoo Park commented on PIG-3357:
------------------------------------

This is because Pig always converts Python float to Java double.
{code:title=JythonUtils.java}
} else if (pyObject instanceof PyFloat) {
   // J(P)ython is loosely typed, supports only float type, 
   // hence we convert everything to double to save precision
   javaObj = pyObject.__tojava__(Double.class);
}
{code}
In fact, that is a good thing because Python floating point numbers are implemented using double in C:
http://docs.python.org/2/library/stdtypes.html#typesnumeric

One workaround is to specify bytearray as the outputSchema of Python udf and do a cast to float in Pig. That is,
{code:title=test.py}
&amp;lt; at &amp;gt;outputSchema("v: bytearray")
def test(v):
   return v
{code}
{code:title=test.pig}
table_out = foreach table_in generate (float)udf.test(v);
{code}
Perhaps we should document this in the Pig manual.
                

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Cheolsoo Park (JIRA</dc:creator>
    <dc:date>2013-06-19T01:14:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31545">
    <title>Subscription: PIG patch available</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31545</link>
    <description>&lt;pre&gt;Issue Subscription
Filter: PIG patch available (15 issues)

Subscriber: pigdaily
        
Key         Summary
PIG-3346    New property that controls the number of combined splits
            https://issues.apache.org/jira/browse/PIG-3346
PIG-3333    Fix remaining Windows core unit test failures
            https://issues.apache.org/jira/browse/PIG-3333
PIG-3295    Casting from bytearray failing after Union (even when each field is from a single Loader)
            https://issues.apache.org/jira/browse/PIG-3295
PIG-3292    Logical plan invalid state: duplicate uid in schema during self-join to get cross product
            https://issues.apache.org/jira/browse/PIG-3292
PIG-3288    Kill jobs if the number of output files is over a configurable limit
            https://issues.apache.org/jira/browse/PIG-3288
PIG-3257    Add unique identifier UDF
            https://issues.apache.org/jira/browse/PIG-3257
PIG-3247    Piggybank functions to mimic OVER clause in SQL
            https://issues.apache.org/jira/browse/PIG-3247
PIG-3210    Pig fails to start when it cannot write log to log files
            https://issues.apache.org/jira/browse/PIG-3210
PIG-3199    Expose LogicalPlan via PigServer API
            https://issues.apache.org/jira/browse/PIG-3199
PIG-3166    Update eclipse .classpath according to ivy library.properties
            https://issues.apache.org/jira/browse/PIG-3166
PIG-3123    Simplify Logical Plans By Removing Unneccessary Identity Projections
            https://issues.apache.org/jira/browse/PIG-3123
PIG-3088    Add a builtin udf which removes prefixes
            https://issues.apache.org/jira/browse/PIG-3088
PIG-3015    Rewrite of AvroStorage
            https://issues.apache.org/jira/browse/PIG-3015
PIG-2248    Pig parser does not detect when a macro name masks a UDF name
            https://issues.apache.org/jira/browse/PIG-2248
PIG-1914    Support load/store JSON data in Pig
            https://issues.apache.org/jira/browse/PIG-1914

You may edit this subscription at:
https://issues.apache.org/jira/secure/FilterSubscription!default.jspa?subId=13225&amp;amp;filterId=12322384

&lt;/pre&gt;</description>
    <dc:creator>jira-1oDqGaOF3Lkdnm+yROfE0A&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2013-06-19T01:01:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31544">
    <title>Fwd: IMPORTANT: Major Confluence Upgrade Coming Soon. Please review test instance now.</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31544</link>
    <description>&lt;pre&gt;

Julien

Begin forwarded message:

&lt;/pre&gt;</description>
    <dc:creator>Julien Le Dem</dc:creator>
    <dc:date>2013-06-18T19:35:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31543">
    <title>[Updated] (PIG-3355) ColumnMapKeyPrune bug with distinct operator</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31543</link>
    <description>&lt;pre&gt;
     [ https://issues.apache.org/jira/browse/PIG-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aniket Mokashi updated PIG-3355:
--------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)
    

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Aniket Mokashi (JIRA</dc:creator>
    <dc:date>2013-06-18T17:38:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31542">
    <title>[Commented] (PIG-3355) ColumnMapKeyPrune bug with distinct operator</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31542</link>
    <description>&lt;pre&gt;
    [ https://issues.apache.org/jira/browse/PIG-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;amp;focusedCommentId=13686997#comment-13686997 ] 

Aniket Mokashi commented on PIG-3355:
-------------------------------------

[~knoguchi], Feel free to rebase and submit a patch for 0.11.
                

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Aniket Mokashi (JIRA</dc:creator>
    <dc:date>2013-06-18T17:38:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31541">
    <title>[Commented] (PIG-3355) ColumnMapKeyPrune bug with distinct operator</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31541</link>
    <description>&lt;pre&gt;
    [ https://issues.apache.org/jira/browse/PIG-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;amp;focusedCommentId=13686815#comment-13686815 ] 

Koji Noguchi commented on PIG-3355:
-----------------------------------

bq. Committed to trunk. Thanks Jeremy!

[~aniket486], status is still "Patch Available"?  
Also, can we patch 0.11 as well so that it'll be included if we release another 0.11.* ?
                

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Koji Noguchi (JIRA</dc:creator>
    <dc:date>2013-06-18T15:11:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31540">
    <title>[Updated] (PIG-3357) Pig doesn't take care of declared float type and converts it to double</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31540</link>
    <description>&lt;pre&gt;
     [ https://issues.apache.org/jira/browse/PIG-3357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey updated PIG-3357:
------------------------

    Summary: Pig doesn't take care of declared float type and converts it to double  (was: Pig doesn't take case of declared float and converts it to double)
    

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Sergey (JIRA</dc:creator>
    <dc:date>2013-06-18T09:45:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31539">
    <title>[Created] (PIG-3357) Pig doesn't take case of declared float and converts it to double</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31539</link>
    <description>&lt;pre&gt;Sergey created PIG-3357:
---------------------------

             Summary: Pig doesn't take case of declared float and converts it to double
                 Key: PIG-3357
                 URL: https://issues.apache.org/jira/browse/PIG-3357
             Project: Pig
          Issue Type: Bug
          Components: piggybank
    Affects Versions: 0.11
         Environment: cdh 4.3.0
            Reporter: Sergey


Here is the script:
{code}
register /usr/lib/pig/lib/avro-1.7.4.jar;
register /usr/lib/pig/lib/json-simple-1.1.jar;
register /usr/lib/pig/piggybank.jar;

register test.py using jython as udf;

table_in = load 'in' as (v: float);
table_out = foreach table_in generate udf.test(v);
store table_out into 'out' using org.apache.pig.piggybank.storage.avro.AvroStorage('schema', '{"name": "test", "type": "float"}');
{code}

Here is UDF:
{code=python}
&amp;lt; at &amp;gt;outputSchema("v: float")
def test(v):
  return v
{code}

Here is an input:
{code}
1
{code}

Here is the stacktrace:
java.lang.Exception: org.apache.avro.file.DataFileWriter$AppendWriteException: java.io.IOException: Cannot convert to float:class java.lang.Double
        at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:404)
Caused by: org.apache.avro.file.DataFileWriter$AppendWriteException: java.io.IOException: Cannot convert to float:class java.lang.Double
        at org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:260)
        at org.apache.pig.piggybank.storage.avro.PigAvroRecordWriter.write(PigAvroRecordWriter.java:49)
        at org.apache.pig.piggybank.storage.avro.AvroStorage.putNext(AvroStorage.java:722)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.write(PigOutputFormat.java:139)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.write(PigOutputFormat.java:98)
        at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.write(MapTask.java:558)
        at org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:85)
        at org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.write(WrappedMapper.java:106)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.collect(PigMapOnly.java:48)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.runPipeline(PigGenericMapBase.java:285)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:278)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:64)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:140)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:672)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:330)
        at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:266)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
Caused by: java.io.IOException: Cannot convert to float:class java.lang.Double
        at org.apache.pig.piggybank.storage.avro.PigAvroDatumWriter.writeFloat(PigAvroDatumWriter.java:281)
        at org.apache.pig.piggybank.storage.avro.PigAvroDatumWriter.write(PigAvroDatumWriter.java:88)
        at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:58)
        at org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:257)
        ... 21 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Sergey (JIRA</dc:creator>
    <dc:date>2013-06-18T09:43:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31538">
    <title>[Updated] (PIG-3357) Pig doesn't take case of declared float and converts it to double</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31538</link>
    <description>&lt;pre&gt;
     [ https://issues.apache.org/jira/browse/PIG-3357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey updated PIG-3357:
------------------------

    Description: 
Here is the script:
{code}
register /usr/lib/pig/lib/avro-1.7.4.jar;
register /usr/lib/pig/lib/json-simple-1.1.jar;
register /usr/lib/pig/piggybank.jar;

register test.py using jython as udf;

table_in = load 'in' as (v: float);
table_out = foreach table_in generate udf.test(v);
store table_out into 'out' using org.apache.pig.piggybank.storage.avro.AvroStorage('schema', '{"name": "test", "type": "float"}');
{code}

Here is UDF:
{code}
&amp;lt; at &amp;gt;outputSchema("v: float")
def test(v):
  return v
{code}

Here is an input:
{code}
1
{code}

Here is the stacktrace:
java.lang.Exception: org.apache.avro.file.DataFileWriter$AppendWriteException: java.io.IOException: Cannot convert to float:class java.lang.Double
        at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:404)
Caused by: org.apache.avro.file.DataFileWriter$AppendWriteException: java.io.IOException: Cannot convert to float:class java.lang.Double
        at org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:260)
        at org.apache.pig.piggybank.storage.avro.PigAvroRecordWriter.write(PigAvroRecordWriter.java:49)
        at org.apache.pig.piggybank.storage.avro.AvroStorage.putNext(AvroStorage.java:722)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.write(PigOutputFormat.java:139)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.write(PigOutputFormat.java:98)
        at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.write(MapTask.java:558)
        at org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:85)
        at org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.write(WrappedMapper.java:106)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.collect(PigMapOnly.java:48)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.runPipeline(PigGenericMapBase.java:285)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:278)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:64)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:140)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:672)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:330)
        at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:266)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
Caused by: java.io.IOException: Cannot convert to float:class java.lang.Double
        at org.apache.pig.piggybank.storage.avro.PigAvroDatumWriter.writeFloat(PigAvroDatumWriter.java:281)
        at org.apache.pig.piggybank.storage.avro.PigAvroDatumWriter.write(PigAvroDatumWriter.java:88)
        at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:58)
        at org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:257)
        ... 21 more

  was:
Here is the script:
{code}
register /usr/lib/pig/lib/avro-1.7.4.jar;
register /usr/lib/pig/lib/json-simple-1.1.jar;
register /usr/lib/pig/piggybank.jar;

register test.py using jython as udf;

table_in = load 'in' as (v: float);
table_out = foreach table_in generate udf.test(v);
store table_out into 'out' using org.apache.pig.piggybank.storage.avro.AvroStorage('schema', '{"name": "test", "type": "float"}');
{code}

Here is UDF:
{code=python}
&amp;lt; at &amp;gt;outputSchema("v: float")
def test(v):
  return v
{code}

Here is an input:
{code}
1
{code}

Here is the stacktrace:
java.lang.Exception: org.apache.avro.file.DataFileWriter$AppendWriteException: java.io.IOException: Cannot convert to float:class java.lang.Double
        at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:404)
Caused by: org.apache.avro.file.DataFileWriter$AppendWriteException: java.io.IOException: Cannot convert to float:class java.lang.Double
        at org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:260)
        at org.apache.pig.piggybank.storage.avro.PigAvroRecordWriter.write(PigAvroRecordWriter.java:49)
        at org.apache.pig.piggybank.storage.avro.AvroStorage.putNext(AvroStorage.java:722)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.write(PigOutputFormat.java:139)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.write(PigOutputFormat.java:98)
        at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.write(MapTask.java:558)
        at org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:85)
        at org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.write(WrappedMapper.java:106)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.collect(PigMapOnly.java:48)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.runPipeline(PigGenericMapBase.java:285)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:278)
        at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:64)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:140)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:672)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:330)
        at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:266)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
Caused by: java.io.IOException: Cannot convert to float:class java.lang.Double
        at org.apache.pig.piggybank.storage.avro.PigAvroDatumWriter.writeFloat(PigAvroDatumWriter.java:281)
        at org.apache.pig.piggybank.storage.avro.PigAvroDatumWriter.write(PigAvroDatumWriter.java:88)
        at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:58)
        at org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:257)
        ... 21 more

    

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Sergey (JIRA</dc:creator>
    <dc:date>2013-06-18T09:43:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31537">
    <title>[Updated] (PIG-2244) Macros cannot be passed relation names</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31537</link>
    <description>&lt;pre&gt;
     [ https://issues.apache.org/jira/browse/PIG-2244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aniket Mokashi updated PIG-2244:
--------------------------------

    Status: Open  (was: Patch Available)
    

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Aniket Mokashi (JIRA</dc:creator>
    <dc:date>2013-06-18T05:47:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31536">
    <title>[Commented] (PIG-2244) Macros cannot be passed relation names</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31536</link>
    <description>&lt;pre&gt;
    [ https://issues.apache.org/jira/browse/PIG-2244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;amp;focusedCommentId=13686412#comment-13686412 ] 

Aniket Mokashi commented on PIG-2244:
-------------------------------------

Canceling patch.. Please re-submit when its ready.
                

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Aniket Mokashi (JIRA</dc:creator>
    <dc:date>2013-06-18T05:47:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31535">
    <title>[Commented] (PIG-3355) ColumnMapKeyPrune bug with distinct operator</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31535</link>
    <description>&lt;pre&gt;
    [ https://issues.apache.org/jira/browse/PIG-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;amp;focusedCommentId=13686411#comment-13686411 ] 

Aniket Mokashi commented on PIG-3355:
-------------------------------------

Committed to trunk. Thanks Jeremy!
                

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Aniket Mokashi (JIRA</dc:creator>
    <dc:date>2013-06-18T05:45:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31534">
    <title>[Assigned] (PIG-3355) ColumnMapKeyPrune bug with distinct operator</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31534</link>
    <description>&lt;pre&gt;
     [ https://issues.apache.org/jira/browse/PIG-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aniket Mokashi reassigned PIG-3355:
-----------------------------------

    Assignee: Jeremy Karn
    

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Aniket Mokashi (JIRA</dc:creator>
    <dc:date>2013-06-18T04:50:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31533">
    <title>[Commented] (PIG-3355) ColumnMapKeyPrune bug with distinct operator</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31533</link>
    <description>&lt;pre&gt;
    [ https://issues.apache.org/jira/browse/PIG-3355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;amp;focusedCommentId=13686389#comment-13686389 ] 

Aniket Mokashi commented on PIG-3355:
-------------------------------------

+1. Will commit if ant test-commit passes.
                

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

&lt;/pre&gt;</description>
    <dc:creator>Aniket Mokashi (JIRA</dc:creator>
    <dc:date>2013-06-18T04:48:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31532">
    <title>Subscription: PIG patch available</title>
    <link>http://permalink.gmane.org/gmane.comp.java.hadoop.pig.devel/31532</link>
    <description>&lt;pre&gt;Issue Subscription
Filter: PIG patch available (17 issues)

Subscriber: pigdaily
        
Key         Summary
PIG-3355    ColumnMapKeyPrune bug with distinct operator
            https://issues.apache.org/jira/browse/PIG-3355
PIG-3346    New property that controls the number of combined splits
            https://issues.apache.org/jira/browse/PIG-3346
PIG-3333    Fix remaining Windows core unit test failures
            https://issues.apache.org/jira/browse/PIG-3333
PIG-3295    Casting from bytearray failing after Union (even when each field is from a single Loader)
            https://issues.apache.org/jira/browse/PIG-3295
PIG-3292    Logical plan invalid state: duplicate uid in schema during self-join to get cross product
            https://issues.apache.org/jira/browse/PIG-3292
PIG-3288    Kill jobs if the number of output files is over a configurable limit
            https://issues.apache.org/jira/browse/PIG-3288
PIG-3257    Add unique identifier UDF
            https://issues.apache.org/jira/browse/PIG-3257
PIG-3247    Piggybank functions to mimic OVER clause in SQL
            https://issues.apache.org/jira/browse/PIG-3247
PIG-3210    Pig fails to start when it cannot write log to log files
            https://issues.apache.org/jira/browse/PIG-3210
PIG-3199    Expose LogicalPlan via PigServer API
            https://issues.apache.org/jira/browse/PIG-3199
PIG-3166    Update eclipse .classpath according to ivy library.properties
            https://issues.apache.org/jira/browse/PIG-3166
PIG-3123    Simplify Logical Plans By Removing Unneccessary Identity Projections
            https://issues.apache.org/jira/browse/PIG-3123
PIG-3088    Add a builtin udf which removes prefixes
            https://issues.apache.org/jira/browse/PIG-3088
PIG-3015    Rewrite of AvroStorage
            https://issues.apache.org/jira/browse/PIG-3015
PIG-2248    Pig parser does not detect when a macro name masks a UDF name
            https://issues.apache.org/jira/browse/PIG-2248
PIG-2244    Macros cannot be passed relation names
            https://issues.apache.org/jira/browse/PIG-2244
PIG-1914    Support load/store JSON data in Pig
            https://issues.apache.org/jira/browse/PIG-1914

You may edit this subscription at:
https://issues.apache.org/jira/secure/FilterSubscription!default.jspa?subId=13225&amp;amp;filterId=12322384

&lt;/pre&gt;</description>
    <dc:creator>jira-1oDqGaOF3Lkdnm+yROfE0A&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2013-06-18T01:02:01</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.java.hadoop.pig.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.java.hadoop.pig.devel</link>
  </textinput>
</rdf:RDF>
