Github user kunal642 commented on the issue:
https://github.com/apache/carbondata/pull/1600
@zzcclp I have already handled this in #1508.
a new Expression is already defined by @sounakr which will take care of the
Cast compatibility between spark-2.1 and spark-2.2---
