RE: handling null argument in custom udf

2012-12-05 Thread Vivek Mishra
Could you please look into and share your task log/attemptlog for complete error trace or actual error behind this? -Vivek From: Søren [s...@syntonetic.com] Sent: 04 December 2012 20:28 To: user@hive.apache.org Subject: Re: handling null argument in

RE: handling null argument in custom udf

2012-12-05 Thread Vivek Mishra
The way UDF works is, you need to tell your ObjectInspector about your primitive or JavaTypes. So in your case even if value is null, you should be able to assign it as a String or any other object. Then invocation to evaluate() function should know about type of java object. -Vivek

hive maven install

2012-12-05 Thread Viral Bajaria
Hi, I downloaded hive 0.9.0 source and wanted to compile it for hadoop 0.23.4, I ended up using the -Dhadoop.version info found at HIVE-2468 and was able to package it. I wanted to push this to my local maven repository (not nexus), is there an easy way to do it ? I tried maven-publish but that

Re: hive maven install

2012-12-05 Thread Nitin Pawar
you will need to use maven deploy plugin http://maven.apache.org/plugins/maven-deploy-plugin/usage.html On Wed, Dec 5, 2012 at 4:10 PM, Viral Bajaria viral.baja...@gmail.comwrote: Hi, I downloaded hive 0.9.0 source and wanted to compile it for hadoop 0.23.4, I ended up using the

Re: hive maven install

2012-12-05 Thread Viral Bajaria
Actually I am using the ant build targets and not maven. I don't think hive is fully mavenized as yet (github repo does not have pom.xml), it has ant targets which help you do all the maven stuff. The plugin that you suggest is for maven and not for ant. On Wed, Dec 5, 2012 at 3:14 AM, Nitin

Re: hive maven install

2012-12-05 Thread Nitin Pawar
in either case, once you have jar buiilt, you can use maven command line to deploy by yourself to maven repo On Wed, Dec 5, 2012 at 4:48 PM, Viral Bajaria viral.baja...@gmail.comwrote: Actually I am using the ant build targets and not maven. I don't think hive is fully mavenized as yet

Determining DateDiff By Minutes in Hive

2012-12-05 Thread Babe Ruth
Hello All, I would like to find the total amount of minutes between two dates. Not sure if this is possible in hive. Any help would be great. Thanks,George

Re: Determining DateDiff By Minutes in Hive

2012-12-05 Thread Mark Grover
George, There is a datediff UDF which will tell you the difference between 2 dates. https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-DateFunctions You can find the number of minutes with simple arithmetic. Keep in mind that this method would not account for