Github user ramkrish86 commented on the pull request:

    https://github.com/apache/flink/pull/1821#issuecomment-203530162
  
    Sorry for the wrong observation.
    I can see that 'a + 42l.abs().cast(STRING)' works fine. 
    But 'a + 42.3.abs().cast(STRING)' does not work. 
    It fails here 
    ` case DOUBLE =>
            val decimal = BigDecimal(value.asInstanceOf[java.math.BigDecimal])
            if (decimal.isValidDouble) {
              generateNonNullLiteral(resultType, decimal.doubleValue().toString)
            }
            else {
              throw new CodeGenException("Decimal can not be converted to 
double.")
            }`


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to