[CARBONDATA-4210] Handle 3.1 parsing failures related to alter complex types
authorakkio-97 <akshay.nuthala@gmail.com>
Wed, 23 Jun 2021 07:49:48 +0000 (13:19 +0530)
committerkunal642 <kunalkapoor642@gmail.com>
Wed, 14 Jul 2021 05:39:08 +0000 (11:09 +0530)
commit02e77234ebb9c1e18e194c1844aaf2d4a2473dcc
tree4dff3c394ef607906280b9a6318f2751b2b70351
parent88fdf60c789f1404bcb95360a4fa3a2c26d3f57c
[CARBONDATA-4210] Handle 3.1 parsing failures related to alter complex types

Why is this PR needed?
For 2.3 and 2.4 parsing of alter commands are done by spark. Which is not in the case of 3.1.

What changes were proposed in this PR?
So carbon is responsible for the parsing here.
Previously ignored test cases due to this issue are now enabled.

This closes #4162
index/secondary-index/src/test/scala/org/apache/carbondata/spark/testsuite/secondaryindex/TestSIWithComplexArrayType.scala
integration/spark/src/main/scala/org/apache/spark/sql/catalyst/CarbonParserUtil.scala
integration/spark/src/main/scala/org/apache/spark/sql/parser/CarbonSpark2SqlParser.scala
integration/spark/src/main/scala/org/apache/spark/sql/parser/CarbonSparkSqlParserUtil.scala
integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/alterTable/TestAlterTableAddColumns.scala
integration/spark/src/test/scala/org/apache/spark/carbondata/restructure/vectorreader/AlterTableColumnRenameTestCase.scala