carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kumarvishal09 <...@git.apache.org>
Subject [GitHub] carbondata pull request #1647: [CARBONDATA-1887] block pruning not happening...
Date Tue, 12 Dec 2017 13:22:31 GMT
Github user kumarvishal09 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1647#discussion_r156363228
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/CastExpressionOptimization.scala
---
    @@ -367,6 +474,13 @@ object CastExpressionOptimization {
                 } else {
                   Some(CastExpr(c))
                 }
    +          case s: ShortType if t.sameType(IntegerType) =>
    +            val value = v.asInstanceOf[Integer].toShort
    +            if (value.toShort.equals(v)) {
    --- End diff --
    
    change it to toInt


---

Mime
View raw message