GitHub user myui opened a pull request:
https://github.com/apache/incubator-hivemall/pull/46
[HIVEMALL-72] Fix rescale UDF behavior to return range [0.0,1.0]
## What changes were proposed in this pull request?
Fix rescale UDF behavior to return range `[0.0,1.0]`.
## What type of PR is it?
Bug Fix
## What is the Jira issue?
https://issues.apache.org/jira/browse/HIVEMALL-72
## How was this patch tested?
manual tests
```sql
-- Before
select rescale(4.2,1.0,3.0),rescale(-0.3, 1.0, 3.0);
> 1.5999999 -0.65
-- After
select rescale(4.2,1.0,3.0),rescale(-0.3, 1.0, 3.0);
> 3.0 1.0
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/myui/incubator-hivemall HIVEMALL-72
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-hivemall/pull/46.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #46
----
commit 6510edd3930d061272e702b5a6b7fc97b7ce3e52
Author: myui <[email protected]>
Date: 2017-02-16T06:39:36Z
[HIVEMALL-72] Fix rescale UDF behavior to return range [0.0,1.0]
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---