标签:code repos key ora bsp rar rgb java index
<!-- https://mvnrepository.com/artifact/org.apache.hive/hive-exec --> <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-exec</artifactId> <version>1.2.1</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common --> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-common</artifactId> <version>2.7.3</version> </dependency>
package com.example.hive.udf; import org.apache.hadoop.hive.ql.exec.UDF; import org.apache.hadoop.io.Text; public final class Lower extends UDF { public Text evaluate( final Text s) { if (s == null ) { return null ; } return new Text(s.toString().toLowerCase()); } } |
3、创建函数
临时函数,关闭连接后,函数失效:
永久函数,调用函数会自动加jar包
标签:code repos key ora bsp rar rgb java index
原文地址:https://www.cnblogs.com/windtalker/p/14170933.html