Github user kunal642 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2501#discussion_r202904039
--- Diff:
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/preaaggregate/PreAggregateUtil.scala
---
@@ -354,7 +354,13 @@ object PreAggregateUtil {
!expression.isInstanceOf[AttributeReference]) {
newColumnName
} else {
- expression.asInstanceOf[AttributeReference].name
+ if (expression.isInstanceOf[GetStructField] ||
expression.isInstanceOf[GetArrayItem]) {
+ throw new MalformedCarbonCommandException(
--- End diff --
throw UnsupportedOperationException
---