GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/4870
[SPARK-6134][SQL] Fix wrong datatype for casting FloatType and default
LongType value in defaultPrimitive
In `CodeGenerator`, the casting on `FloatType` should use `FloatType`
instead of `IntegerType`.
Besides, `defaultPrimitive` for `LongType` should be `-1L` instead of `1L`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 codegen_type
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4870.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 #4870
----
commit 76311dd1feea3df763bcba6138260140568a2eff
Author: Liang-Chi Hsieh <[email protected]>
Date: 2015-03-03T07:57:20Z
Fix wrong datatype for casting on FloatType. Fix the wrong value for
LongType in defaultPrimitive.
----
---
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]