Github user ravipesala commented on a diff in the pull request: https://github.com/apache/carbondata/pull/1656#discussion_r156842298 --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/CastExpressionOptimization.scala --- @@ -122,6 +164,13 @@ object CastExpressionOptimization { } else { Some(CastExpr(c)) } + case d: DateType if t.sameType(StringType) => --- End diff -- Merge the case blocks as follows, ``` case TimestampType | DateType ```
---