Hive UDF Example Convert From Int to Float

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

1 Comment

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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

HadoopTpoint © 2017 Frontier Theme