commit | e86815a5e88a161803a62c70ebbd00d5d688be2c | [log] [tgz] |
---|---|---|
author | Makoto Yui <myui@apache.org> | Mon Jul 27 15:36:48 2020 +0900 |
committer | Makoto Yui <myui@apache.org> | Mon Jul 27 15:36:48 2020 +0900 |
tree | ad02a576158cd46ea1ca9c77e2fc6ba4a5f71ff8 | |
parent | 04fa7545b4e4b540a6a8c610c36450a8e2320ba7 [diff] |
[HIVEMALL-296][BUGFIX] Fixed corner case NPE bug when count is zero ## What changes were proposed in this pull request? Fixed corner case NPE bug when count is zero. ``` Caused by: java.lang.NullPointerException at hivemall.GeneralLearnerBaseUDTF.forwardModel(GeneralLearnerBaseUDTF.java:763) at hivemall.GeneralLearnerBaseUDTF.close(GeneralLearnerBaseUDTF.java:560) at org.apache.hadoop.hive.ql.exec.UDTFOperator.closeOp(UDTFOperator.java:152) at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:697) at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:711) at org.apache.hadoop.hive.ql.exec.mr.ExecReducer.close(ExecReducer.java:279) ``` ## What type of PR is it? Bug Fix ## What is the Jira issue? https://issues.apache.org/jira/browse/HIVEMALL-296 ## How was this patch tested? unit tests ## Checklist - [x] Did you apply source code formatter, i.e., `./bin/format_code.sh`, for your commit? - [ ] Did you run system tests on Hive (or Spark)? Author: Makoto Yui <myui@apache.org> Closes #230 from myui/HIVEMALL-296.
Apache Hivemall is a scalable machine learning library that runs on Apache Hive, Apache Spark, and Apache Pig. Hivemall is designed to be scalable to the number of training instances as well as the number of training features.
Find more examples on our user guide and find a brief introduction to Hivemall in this slide.
Support is through user@hivemall.incubator.apache.org, not by a direct e-mail.
If you are planning to contribute to this repository, we first request you to create an issue at our JIRA page even if the topic is not related to source code itself (e.g., documentation, new idea and proposal).
All Hivemall functions are defined under resources/ddl. In order to update the definition files, the following script helps inserting function name and class path of your new UDF:
$ ./bin/update_ddls.sh
Moreover, don't forget to update function list in the document as well:
$ ./bin/update_func_md.sh
Note that, before creating a pull request including Java code, please make sure your code follows our coding conventions by applying formatter:
$ ./bin/format_code.sh