今天看下hive到什么版本了,目前最搞版本是0.9.0
1、先看了下udf更新内容,原文如下
[/code]
这个版本不需要用户写udf要集成UDF接口,任何方法都可以通过反射来实现UDF功能
2、roadmap说明了些新特性,重点看了几个自己感兴趣的Implement Indexing in Hive,hive中将支持索引,jira状态是close,应该最新的版本中就会体现,应该在0.10.0吧
3、
4、
5、
6、
1、先看了下udf更新内容,原文如下
A java class and method often exists to handle the exact function a user would like to use in hive. Rather then having to write a wrapper UDF to call this method, the majority of these methods can be called using reflect udf. Reflect uses java reflection to instantiate and call methods of objects, it can also call static functions. The method must return a primative type or a type that hive knows how to serialize.
[code="java"]
SELECT reflect("java.lang.String", "valueOf", 1),
reflect("java.lang.String", "isEmpty"),
reflect("java.lang.Math", "max", 2, 3),
reflect("java.lang.Math", "min", 2, 3),
reflect("java.lang.Math", "round", 2.5),
reflect("java.lang.Math", "exp", 1.0),
reflect("java.lang.Math", "floor", 1.9)
FROM src LIMIT 1;
1 true 3 2 3 2.7182818284590455 1.0
[/code]
这个版本不需要用户写udf要集成UDF接口,任何方法都可以通过反射来实现UDF功能
2、roadmap说明了些新特性,重点看了几个自己感兴趣的Implement Indexing in Hive,hive中将支持索引,jira状态是close,应该最新的版本中就会体现,应该在0.10.0吧
3、
4、
5、
6、
本文介绍了Hive 0.9.0版本的重要更新,包括使用Reflect UDF简化用户定义函数(UDF)的创建过程,以及计划在后续版本中引入的索引支持等内容。
2077

被折叠的 条评论
为什么被折叠?



