GitHub user heliocentrist opened a pull request:
https://github.com/apache/spark/pull/11540
Fixing the type of the sentiment happiness value
## What changes were proposed in this pull request?
Added the conversion to int for the 'happiness value' read from the file.
Otherwise, later on line 75 the multiplication will multiply a string by a
number, yielding values like "-2-2" instead of -4.
## How was this patch tested?
Tested manually.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/heliocentrist/spark fix-sentiment-value-type
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11540.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 #11540
----
commit 254a20f42fc585146aba7377914d0048fe034927
Author: Yury Liavitski <[email protected]>
Date: 2016-03-05T14:57:27Z
Fixing the type of the sentiment happiness value
----
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]