Skip to content
Go to file

Latest commit

## 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(
	at hivemall.GeneralLearnerBaseUDTF.close(
	at org.apache.hadoop.hive.ql.exec.UDTFOperator.closeOp(
	at org.apache.hadoop.hive.ql.exec.Operator.close(
	at org.apache.hadoop.hive.ql.exec.Operator.close(

## What type of PR is it?

Bug Fix

## What is the Jira issue?

## How was this patch tested?

unit tests

## Checklist

- [x] Did you apply source code formatter, i.e., `./bin/`, for your commit?
- [ ] Did you run system tests on Hive (or Spark)?

Author: Makoto Yui <>

Closes #230 from myui/HIVEMALL-296.

Git stats


Failed to load latest commit information.
Latest commit message
Commit time
Dec 3, 2019

Apache Hivemall: Hive scalable machine learning library

Build Status Documentation Status License Coverage Status Twitter Follow

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.

Apache Incubator



Find more examples on our user guide and find a brief introduction to Hivemall in this slide.


Support is through, 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/

Moreover, don't forget to update function list in the document as well:

$ ./bin/

Note that, before creating a pull request including Java code, please make sure your code follows our coding conventions by applying formatter:

$ ./bin/
You can’t perform that action at this time.