Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Pig UDF compilation error


Copy link to this message
-
Re: Pig UDF compilation error

> That being said, technically even with the bug, this will compile.

That won't even compile in Java, unless input is of type Boolean. But if
it is of type boolean input.size() won't compile!
(But yeah, I have spent hours debugging a bug introduced by such a typo
in C++ code)
-Thejas

>
> On Mon, Aug 22, 2011 at 6:40 AM, Jonathan Coveney<[EMAIL PROTECTED]>wrote:
>
>> It should be: input == null || input.size() == 0
>>
>> In java, = means variable assignment, whereas == is equality.
>>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB