Hive UDF Example Convert From Int to Float

Our HadoopTpoint App is now available in google play store,please rate and comment it in play store : W3Schools

Hive UDF Example Convert From Int to Float

In this example First create a hive table like

create table inttofloat (number int) stored as textfile;

My input is

10

11

14

When i apply my udf on this hive Table immediately the int values are converted into  float like

10.0

11.0

14.0

here is the Hive UDF Example Convert From Int to Float

Comments

  1. create function inttofloat AS ‘mahesh.Inttofloat212′ USING JAR ‘hdfs://localhost:8020/udf/intfloat1.jar';

Speak Your Mind

*