Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented Mar 3, 2015

In CodeGenerator, the casting on FloatType should use FloatType instead of IntegerType.

Besides, defaultPrimitive for LongType should be -1L instead of 1L.

@viirya
Copy link
Member Author

viirya commented Mar 3, 2015

CC @marmbrus.

@SparkQA
Copy link

SparkQA commented Mar 3, 2015

Test build #28226 has finished for PR 4870 at commit 76311dd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@chenghao-intel
Copy link
Contributor

Good catch, LGTM.

@adrian-wang
Copy link
Contributor

LGTM

@liancheng
Copy link
Contributor

LGTM, merging into master and branch-1.3. Thanks!

@asfgit asfgit closed this in aef8a84 Mar 4, 2015
asfgit pushed a commit that referenced this pull request Mar 4, 2015
…t 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`.

Author: Liang-Chi Hsieh <viirya@gmail.com>

Closes #4870 from viirya/codegen_type and squashes the following commits:

76311dd [Liang-Chi Hsieh] Fix wrong datatype for casting on FloatType. Fix the wrong value for LongType in defaultPrimitive.

(cherry picked from commit aef8a84)
Signed-off-by: Cheng Lian <lian@databricks.com>
@viirya viirya deleted the codegen_type branch December 27, 2023 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants