Github user ajantha-bhat commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2983#discussion_r240889108 --- Diff: integration/spark-common-test/src/test/scala/org/apache/carbondata/integration/spark/testsuite/complexType/TestComplexDataType.scala --- @@ -39,6 +39,27 @@ class TestComplexDataType extends QueryTest with BeforeAndAfterAll { .addProperty(CarbonCommonConstants.CARBON_BAD_RECORDS_ACTION, badRecordAction) } + test("test Projection PushDown for Array - String type when Array is Empty") { + CarbonProperties.getInstance() + .addProperty(CarbonCommonConstants.CARBON_BAD_RECORDS_ACTION, "FAIL") + sql("drop table if exists table1") + sql("create table table1 (detail array<string>) stored by 'carbondata'") + sql("insert into table1 values('')") + checkAnswer(sql("select detail[0] from table1"), Seq(Row(""))) + sql("drop table if exists table1") + } + + test("test Projection PushDown for Struct - Array type when Array is Empty") { + CarbonProperties.getInstance() + .addProperty(CarbonCommonConstants.CARBON_BAD_RECORDS_ACTION, "FAIL") --- End diff -- same as above
---