You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "xubo245 (JIRA)" <ji...@apache.org> on 2017/12/12 11:01:05 UTC

[jira] [Updated] (CARBONDATA-1885) Test error in AlterTableValidationTestCase

     [ https://issues.apache.org/jira/browse/CARBONDATA-1885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

xubo245 updated CARBONDATA-1885:
--------------------------------
    Description: 
Running alone the test class fail:

{code:java}
17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table for add columns is successful for table default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table drop columns request has been received for default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table for drop columns is successful for table default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table add columns request has been received for default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table for add columns is successful for table default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table drop columns request has been received for default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table for drop columns is successful for table default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table add columns request has been received for default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table for add columns is successful for table default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table drop columns request has been received for default.restructure
17/12/12 01:51:42 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table for drop columns is successful for table default.restructure
17/12/12 01:51:42 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table add columns request has been received for default.restructure
17/12/12 01:51:42 ERROR DataTypeUtil: ScalaTest-run-running-AlterTableValidationTestCase Cannot convert value to Time/Long type value. Value is considered as nullUnparseable date: "17-01-2007"
17/12/12 01:51:42 ERROR AlterTableColumnSchemaGenerator: ScalaTest-run-running-AlterTableValidationTestCase Invalid default value for new column default.restructure.designation : 17-01-2007
17/12/12 01:51:42 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table for add columns is successful for table default.restructure


Results do not match for query:
== Parsed Logical Plan ==
'Distinct
+- 'Project ['designation]
   +- 'UnresolvedRelation `restructure`

== Analyzed Logical Plan ==
designation: timestamp
Distinct
+- Project [designation#3679]
   +- SubqueryAlias restructure
      +- Relation[workgroupcategory#3650,workgroupcategoryname#3651,deptno#3652,deptname#3653,projectcode#3654,projectjoindate#3655,projectenddate#3656,attendance#3657,utilization#3658,salary#3659,dict#3660,nodict#3661,tmpstmp1#3662,msrfield#3663,strfld#3664,datefld#3665,tptfld#3666,shortfld#3667,intfld#3668,longfld#3669L,dblfld#3670,dcml#3671,dcmlfld#3672,dimfld#3673,... 6 more fields] CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ]

== Optimized Logical Plan ==
CarbonDictionaryCatalystDecoder [CarbonDecoderRelation(Map(dcml#3671 -> dcml#3671, workgroupcategoryname#3651 -> workgroupcategoryname#3651, projectjoindate#3655 -> projectjoindate#3655, dict#3660 -> dict#3660, tmpstmp1#3662 -> tmpstmp1#3662, projectcode#3654 -> projectcode#3654, dimfld1#3674 -> dimfld1#3674, msrcol#3675 -> msrcol#3675, deptno#3652 -> deptno#3652, dcmlfld#3672 -> dcmlfld#3672, tptfld#3666 -> tptfld#3666, dblfld#3670 -> dblfld#3670, workgroupcategory#3650 -> workgroupcategory#3650, empno#3677 -> empno#3677, msrfield#3663 -> msrfield#3663, longfld#3669L -> longfld#3669L, intfld#3668 -> intfld#3668, shortfld#3667 -> shortfld#3667, dimfld#3673 -> dimfld#3673, datefld#3665 -> datefld#3665, attendance#3657 -> attendance#3657, deptname#3653 -> deptname#3653, projectenddate#3656 -> projectenddate#3656, salary#3659 -> salary#3659, doj#3678 -> doj#3678, nodict#3661 -> nodict#3661, strfld#3664 -> strfld#3664, utilization#3658 -> utilization#3658, empname#3676 -> empname#3676, designation#3679 -> designation#3679),CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ])], ExcludeProfile(ArrayBuffer()), CarbonAliasDecoderRelation(), true
+- Aggregate [designation#3679], [designation#3679]
   +- Project [designation#3679]
      +- Relation[workgroupcategory#3650,workgroupcategoryname#3651,deptno#3652,deptname#3653,projectcode#3654,projectjoindate#3655,projectenddate#3656,attendance#3657,utilization#3658,salary#3659,dict#3660,nodict#3661,tmpstmp1#3662,msrfield#3663,strfld#3664,datefld#3665,tptfld#3666,shortfld#3667,intfld#3668,longfld#3669L,dblfld#3670,dcml#3671,dcmlfld#3672,dimfld#3673,... 6 more fields] CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ]

== Physical Plan ==
*HashAggregate(keys=[designation#3679], functions=[], output=[designation#3679])
+- Exchange hashpartitioning(designation#3679, 200)
   +- *HashAggregate(keys=[designation#3679], functions=[], output=[designation#3679])
      +- *BatchedScan CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ] default.restructure[designation#3679]
== Results ==
!== Correct Answer - 1 ==   == Spark Answer - 1 ==
![2007-01-17 00:00:00.0]    [null]
      
ScalaTestFailureLocation: org.apache.spark.sql.test.util.QueryTest at (QueryTest.scala:87)
org.scalatest.exceptions.TestFailedException: 
Results do not match for query:
== Parsed Logical Plan ==
'Distinct
+- 'Project ['designation]
   +- 'UnresolvedRelation `restructure`

== Analyzed Logical Plan ==
designation: timestamp
Distinct
+- Project [designation#3679]
   +- SubqueryAlias restructure
      +- Relation[workgroupcategory#3650,workgroupcategoryname#3651,deptno#3652,deptname#3653,projectcode#3654,projectjoindate#3655,projectenddate#3656,attendance#3657,utilization#3658,salary#3659,dict#3660,nodict#3661,tmpstmp1#3662,msrfield#3663,strfld#3664,datefld#3665,tptfld#3666,shortfld#3667,intfld#3668,longfld#3669L,dblfld#3670,dcml#3671,dcmlfld#3672,dimfld#3673,... 6 more fields] CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ]

== Optimized Logical Plan ==
CarbonDictionaryCatalystDecoder [CarbonDecoderRelation(Map(dcml#3671 -> dcml#3671, workgroupcategoryname#3651 -> workgroupcategoryname#3651, projectjoindate#3655 -> projectjoindate#3655, dict#3660 -> dict#3660, tmpstmp1#3662 -> tmpstmp1#3662, projectcode#3654 -> projectcode#3654, dimfld1#3674 -> dimfld1#3674, msrcol#3675 -> msrcol#3675, deptno#3652 -> deptno#3652, dcmlfld#3672 -> dcmlfld#3672, tptfld#3666 -> tptfld#3666, dblfld#3670 -> dblfld#3670, workgroupcategory#3650 -> workgroupcategory#3650, empno#3677 -> empno#3677, msrfield#3663 -> msrfield#3663, longfld#3669L -> longfld#3669L, intfld#3668 -> intfld#3668, shortfld#3667 -> shortfld#3667, dimfld#3673 -> dimfld#3673, datefld#3665 -> datefld#3665, attendance#3657 -> attendance#3657, deptname#3653 -> deptname#3653, projectenddate#3656 -> projectenddate#3656, salary#3659 -> salary#3659, doj#3678 -> doj#3678, nodict#3661 -> nodict#3661, strfld#3664 -> strfld#3664, utilization#3658 -> utilization#3658, empname#3676 -> empname#3676, designation#3679 -> designation#3679),CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ])], ExcludeProfile(ArrayBuffer()), CarbonAliasDecoderRelation(), true
+- Aggregate [designation#3679], [designation#3679]
   +- Project [designation#3679]
      +- Relation[workgroupcategory#3650,workgroupcategoryname#3651,deptno#3652,deptname#3653,projectcode#3654,projectjoindate#3655,projectenddate#3656,attendance#3657,utilization#3658,salary#3659,dict#3660,nodict#3661,tmpstmp1#3662,msrfield#3663,strfld#3664,datefld#3665,tptfld#3666,shortfld#3667,intfld#3668,longfld#3669L,dblfld#3670,dcml#3671,dcmlfld#3672,dimfld#3673,... 6 more fields] CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ]

== Physical Plan ==
*HashAggregate(keys=[designation#3679], functions=[], output=[designation#3679])
+- Exchange hashpartitioning(designation#3679, 200)
   +- *HashAggregate(keys=[designation#3679], functions=[], output=[designation#3679])
      +- *BatchedScan CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ] default.restructure[designation#3679]
== Results ==
!== Correct Answer - 1 ==   == Spark Answer - 1 ==
![2007-01-17 00:00:00.0]    [null]
      
	at org.scalatest.Assertions$class.newAssertionFailedException(Assertions.scala:495)
	at org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1555)
	at org.scalatest.Assertions$class.fail(Assertions.scala:1328)
	at org.scalatest.FunSuite.fail(FunSuite.scala:1555)
	at org.apache.spark.sql.test.util.QueryTest.checkAnswer(QueryTest.scala:87)
	at org.apache.spark.sql.test.util.QueryTest.checkAnswer(QueryTest.scala:93)
	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase$$anonfun$21.apply$mcV$sp(AlterTableValidationTestCase.scala:325)
	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase$$anonfun$21.apply(AlterTableValidationTestCase.scala:307)
	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase$$anonfun$21.apply(AlterTableValidationTestCase.scala:307)
	at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
	at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.Transformer.apply(Transformer.scala:22)
	at org.scalatest.Transformer.apply(Transformer.scala:20)
	at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166)
	at org.apache.spark.sql.test.util.CarbonFunSuite.withFixture(CarbonFunSuite.scala:41)
	at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:163)
	at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
	at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:175)
	at org.scalatest.FunSuite.runTest(FunSuite.scala:1555)
	at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
	at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413)
	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)
	at scala.collection.immutable.List.foreach(List.scala:381)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483)
	at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:208)
	at org.scalatest.FunSuite.runTests(FunSuite.scala:1555)
	at org.scalatest.Suite$class.run(Suite.scala:1424)
	at org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1555)
	at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
	at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:545)
	at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:212)
	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase.org$scalatest$BeforeAndAfterAll$$super$run(AlterTableValidationTestCase.scala:34)
	at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257)
	at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256)
	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase.run(AlterTableValidationTestCase.scala:34)
	at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:55)
	at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$3.apply(Runner.scala:2563)
	at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$3.apply(Runner.scala:2557)
	at scala.collection.immutable.List.foreach(List.scala:381)
	at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:2557)
	at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1044)
	at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1043)
	at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:2722)
	at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1043)
	at org.scalatest.tools.Runner$.run(Runner.scala:883)
	at org.scalatest.tools.Runner.run(Runner.scala)
	at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.runScalaTest2(ScalaTestRunner.java:138)
	at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:28)


{code}


  was:

{code:java}
17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table for add columns is successful for table default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table drop columns request has been received for default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table for drop columns is successful for table default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table add columns request has been received for default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table for add columns is successful for table default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table drop columns request has been received for default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table for drop columns is successful for table default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table add columns request has been received for default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table for add columns is successful for table default.restructure
17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table drop columns request has been received for default.restructure
17/12/12 01:51:42 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table for drop columns is successful for table default.restructure
17/12/12 01:51:42 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table add columns request has been received for default.restructure
17/12/12 01:51:42 ERROR DataTypeUtil: ScalaTest-run-running-AlterTableValidationTestCase Cannot convert value to Time/Long type value. Value is considered as nullUnparseable date: "17-01-2007"
17/12/12 01:51:42 ERROR AlterTableColumnSchemaGenerator: ScalaTest-run-running-AlterTableValidationTestCase Invalid default value for new column default.restructure.designation : 17-01-2007
17/12/12 01:51:42 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table for add columns is successful for table default.restructure


Results do not match for query:
== Parsed Logical Plan ==
'Distinct
+- 'Project ['designation]
   +- 'UnresolvedRelation `restructure`

== Analyzed Logical Plan ==
designation: timestamp
Distinct
+- Project [designation#3679]
   +- SubqueryAlias restructure
      +- Relation[workgroupcategory#3650,workgroupcategoryname#3651,deptno#3652,deptname#3653,projectcode#3654,projectjoindate#3655,projectenddate#3656,attendance#3657,utilization#3658,salary#3659,dict#3660,nodict#3661,tmpstmp1#3662,msrfield#3663,strfld#3664,datefld#3665,tptfld#3666,shortfld#3667,intfld#3668,longfld#3669L,dblfld#3670,dcml#3671,dcmlfld#3672,dimfld#3673,... 6 more fields] CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ]

== Optimized Logical Plan ==
CarbonDictionaryCatalystDecoder [CarbonDecoderRelation(Map(dcml#3671 -> dcml#3671, workgroupcategoryname#3651 -> workgroupcategoryname#3651, projectjoindate#3655 -> projectjoindate#3655, dict#3660 -> dict#3660, tmpstmp1#3662 -> tmpstmp1#3662, projectcode#3654 -> projectcode#3654, dimfld1#3674 -> dimfld1#3674, msrcol#3675 -> msrcol#3675, deptno#3652 -> deptno#3652, dcmlfld#3672 -> dcmlfld#3672, tptfld#3666 -> tptfld#3666, dblfld#3670 -> dblfld#3670, workgroupcategory#3650 -> workgroupcategory#3650, empno#3677 -> empno#3677, msrfield#3663 -> msrfield#3663, longfld#3669L -> longfld#3669L, intfld#3668 -> intfld#3668, shortfld#3667 -> shortfld#3667, dimfld#3673 -> dimfld#3673, datefld#3665 -> datefld#3665, attendance#3657 -> attendance#3657, deptname#3653 -> deptname#3653, projectenddate#3656 -> projectenddate#3656, salary#3659 -> salary#3659, doj#3678 -> doj#3678, nodict#3661 -> nodict#3661, strfld#3664 -> strfld#3664, utilization#3658 -> utilization#3658, empname#3676 -> empname#3676, designation#3679 -> designation#3679),CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ])], ExcludeProfile(ArrayBuffer()), CarbonAliasDecoderRelation(), true
+- Aggregate [designation#3679], [designation#3679]
   +- Project [designation#3679]
      +- Relation[workgroupcategory#3650,workgroupcategoryname#3651,deptno#3652,deptname#3653,projectcode#3654,projectjoindate#3655,projectenddate#3656,attendance#3657,utilization#3658,salary#3659,dict#3660,nodict#3661,tmpstmp1#3662,msrfield#3663,strfld#3664,datefld#3665,tptfld#3666,shortfld#3667,intfld#3668,longfld#3669L,dblfld#3670,dcml#3671,dcmlfld#3672,dimfld#3673,... 6 more fields] CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ]

== Physical Plan ==
*HashAggregate(keys=[designation#3679], functions=[], output=[designation#3679])
+- Exchange hashpartitioning(designation#3679, 200)
   +- *HashAggregate(keys=[designation#3679], functions=[], output=[designation#3679])
      +- *BatchedScan CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ] default.restructure[designation#3679]
== Results ==
!== Correct Answer - 1 ==   == Spark Answer - 1 ==
![2007-01-17 00:00:00.0]    [null]
      
ScalaTestFailureLocation: org.apache.spark.sql.test.util.QueryTest at (QueryTest.scala:87)
org.scalatest.exceptions.TestFailedException: 
Results do not match for query:
== Parsed Logical Plan ==
'Distinct
+- 'Project ['designation]
   +- 'UnresolvedRelation `restructure`

== Analyzed Logical Plan ==
designation: timestamp
Distinct
+- Project [designation#3679]
   +- SubqueryAlias restructure
      +- Relation[workgroupcategory#3650,workgroupcategoryname#3651,deptno#3652,deptname#3653,projectcode#3654,projectjoindate#3655,projectenddate#3656,attendance#3657,utilization#3658,salary#3659,dict#3660,nodict#3661,tmpstmp1#3662,msrfield#3663,strfld#3664,datefld#3665,tptfld#3666,shortfld#3667,intfld#3668,longfld#3669L,dblfld#3670,dcml#3671,dcmlfld#3672,dimfld#3673,... 6 more fields] CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ]

== Optimized Logical Plan ==
CarbonDictionaryCatalystDecoder [CarbonDecoderRelation(Map(dcml#3671 -> dcml#3671, workgroupcategoryname#3651 -> workgroupcategoryname#3651, projectjoindate#3655 -> projectjoindate#3655, dict#3660 -> dict#3660, tmpstmp1#3662 -> tmpstmp1#3662, projectcode#3654 -> projectcode#3654, dimfld1#3674 -> dimfld1#3674, msrcol#3675 -> msrcol#3675, deptno#3652 -> deptno#3652, dcmlfld#3672 -> dcmlfld#3672, tptfld#3666 -> tptfld#3666, dblfld#3670 -> dblfld#3670, workgroupcategory#3650 -> workgroupcategory#3650, empno#3677 -> empno#3677, msrfield#3663 -> msrfield#3663, longfld#3669L -> longfld#3669L, intfld#3668 -> intfld#3668, shortfld#3667 -> shortfld#3667, dimfld#3673 -> dimfld#3673, datefld#3665 -> datefld#3665, attendance#3657 -> attendance#3657, deptname#3653 -> deptname#3653, projectenddate#3656 -> projectenddate#3656, salary#3659 -> salary#3659, doj#3678 -> doj#3678, nodict#3661 -> nodict#3661, strfld#3664 -> strfld#3664, utilization#3658 -> utilization#3658, empname#3676 -> empname#3676, designation#3679 -> designation#3679),CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ])], ExcludeProfile(ArrayBuffer()), CarbonAliasDecoderRelation(), true
+- Aggregate [designation#3679], [designation#3679]
   +- Project [designation#3679]
      +- Relation[workgroupcategory#3650,workgroupcategoryname#3651,deptno#3652,deptname#3653,projectcode#3654,projectjoindate#3655,projectenddate#3656,attendance#3657,utilization#3658,salary#3659,dict#3660,nodict#3661,tmpstmp1#3662,msrfield#3663,strfld#3664,datefld#3665,tptfld#3666,shortfld#3667,intfld#3668,longfld#3669L,dblfld#3670,dcml#3671,dcmlfld#3672,dimfld#3673,... 6 more fields] CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ]

== Physical Plan ==
*HashAggregate(keys=[designation#3679], functions=[], output=[designation#3679])
+- Exchange hashpartitioning(designation#3679, 200)
   +- *HashAggregate(keys=[designation#3679], functions=[], output=[designation#3679])
      +- *BatchedScan CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ] default.restructure[designation#3679]
== Results ==
!== Correct Answer - 1 ==   == Spark Answer - 1 ==
![2007-01-17 00:00:00.0]    [null]
      
	at org.scalatest.Assertions$class.newAssertionFailedException(Assertions.scala:495)
	at org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1555)
	at org.scalatest.Assertions$class.fail(Assertions.scala:1328)
	at org.scalatest.FunSuite.fail(FunSuite.scala:1555)
	at org.apache.spark.sql.test.util.QueryTest.checkAnswer(QueryTest.scala:87)
	at org.apache.spark.sql.test.util.QueryTest.checkAnswer(QueryTest.scala:93)
	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase$$anonfun$21.apply$mcV$sp(AlterTableValidationTestCase.scala:325)
	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase$$anonfun$21.apply(AlterTableValidationTestCase.scala:307)
	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase$$anonfun$21.apply(AlterTableValidationTestCase.scala:307)
	at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
	at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.Transformer.apply(Transformer.scala:22)
	at org.scalatest.Transformer.apply(Transformer.scala:20)
	at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166)
	at org.apache.spark.sql.test.util.CarbonFunSuite.withFixture(CarbonFunSuite.scala:41)
	at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:163)
	at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
	at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:175)
	at org.scalatest.FunSuite.runTest(FunSuite.scala:1555)
	at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
	at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413)
	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)
	at scala.collection.immutable.List.foreach(List.scala:381)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483)
	at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:208)
	at org.scalatest.FunSuite.runTests(FunSuite.scala:1555)
	at org.scalatest.Suite$class.run(Suite.scala:1424)
	at org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1555)
	at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
	at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:545)
	at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:212)
	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase.org$scalatest$BeforeAndAfterAll$$super$run(AlterTableValidationTestCase.scala:34)
	at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257)
	at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256)
	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase.run(AlterTableValidationTestCase.scala:34)
	at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:55)
	at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$3.apply(Runner.scala:2563)
	at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$3.apply(Runner.scala:2557)
	at scala.collection.immutable.List.foreach(List.scala:381)
	at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:2557)
	at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1044)
	at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1043)
	at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:2722)
	at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1043)
	at org.scalatest.tools.Runner$.run(Runner.scala:883)
	at org.scalatest.tools.Runner.run(Runner.scala)
	at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.runScalaTest2(ScalaTestRunner.java:138)
	at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:28)


{code}



> Test error in AlterTableValidationTestCase
> ------------------------------------------
>
>                 Key: CARBONDATA-1885
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1885
>             Project: CarbonData
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: xubo245
>            Assignee: xubo245
>             Fix For: 1.3.0
>
>
> Running alone the test class fail:
> {code:java}
> 17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table for add columns is successful for table default.restructure
> 17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table drop columns request has been received for default.restructure
> 17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table for drop columns is successful for table default.restructure
> 17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table add columns request has been received for default.restructure
> 17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table for add columns is successful for table default.restructure
> 17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table drop columns request has been received for default.restructure
> 17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table for drop columns is successful for table default.restructure
> 17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table add columns request has been received for default.restructure
> 17/12/12 01:51:41 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table for add columns is successful for table default.restructure
> 17/12/12 01:51:41 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table drop columns request has been received for default.restructure
> 17/12/12 01:51:42 AUDIT CarbonAlterTableDropColumnCommand: [hadoop][root][Thread-1]Alter table for drop columns is successful for table default.restructure
> 17/12/12 01:51:42 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table add columns request has been received for default.restructure
> 17/12/12 01:51:42 ERROR DataTypeUtil: ScalaTest-run-running-AlterTableValidationTestCase Cannot convert value to Time/Long type value. Value is considered as nullUnparseable date: "17-01-2007"
> 17/12/12 01:51:42 ERROR AlterTableColumnSchemaGenerator: ScalaTest-run-running-AlterTableValidationTestCase Invalid default value for new column default.restructure.designation : 17-01-2007
> 17/12/12 01:51:42 AUDIT CarbonAlterTableAddColumnCommand: [hadoop][root][Thread-1]Alter table for add columns is successful for table default.restructure
> Results do not match for query:
> == Parsed Logical Plan ==
> 'Distinct
> +- 'Project ['designation]
>    +- 'UnresolvedRelation `restructure`
> == Analyzed Logical Plan ==
> designation: timestamp
> Distinct
> +- Project [designation#3679]
>    +- SubqueryAlias restructure
>       +- Relation[workgroupcategory#3650,workgroupcategoryname#3651,deptno#3652,deptname#3653,projectcode#3654,projectjoindate#3655,projectenddate#3656,attendance#3657,utilization#3658,salary#3659,dict#3660,nodict#3661,tmpstmp1#3662,msrfield#3663,strfld#3664,datefld#3665,tptfld#3666,shortfld#3667,intfld#3668,longfld#3669L,dblfld#3670,dcml#3671,dcmlfld#3672,dimfld#3673,... 6 more fields] CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ]
> == Optimized Logical Plan ==
> CarbonDictionaryCatalystDecoder [CarbonDecoderRelation(Map(dcml#3671 -> dcml#3671, workgroupcategoryname#3651 -> workgroupcategoryname#3651, projectjoindate#3655 -> projectjoindate#3655, dict#3660 -> dict#3660, tmpstmp1#3662 -> tmpstmp1#3662, projectcode#3654 -> projectcode#3654, dimfld1#3674 -> dimfld1#3674, msrcol#3675 -> msrcol#3675, deptno#3652 -> deptno#3652, dcmlfld#3672 -> dcmlfld#3672, tptfld#3666 -> tptfld#3666, dblfld#3670 -> dblfld#3670, workgroupcategory#3650 -> workgroupcategory#3650, empno#3677 -> empno#3677, msrfield#3663 -> msrfield#3663, longfld#3669L -> longfld#3669L, intfld#3668 -> intfld#3668, shortfld#3667 -> shortfld#3667, dimfld#3673 -> dimfld#3673, datefld#3665 -> datefld#3665, attendance#3657 -> attendance#3657, deptname#3653 -> deptname#3653, projectenddate#3656 -> projectenddate#3656, salary#3659 -> salary#3659, doj#3678 -> doj#3678, nodict#3661 -> nodict#3661, strfld#3664 -> strfld#3664, utilization#3658 -> utilization#3658, empname#3676 -> empname#3676, designation#3679 -> designation#3679),CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ])], ExcludeProfile(ArrayBuffer()), CarbonAliasDecoderRelation(), true
> +- Aggregate [designation#3679], [designation#3679]
>    +- Project [designation#3679]
>       +- Relation[workgroupcategory#3650,workgroupcategoryname#3651,deptno#3652,deptname#3653,projectcode#3654,projectjoindate#3655,projectenddate#3656,attendance#3657,utilization#3658,salary#3659,dict#3660,nodict#3661,tmpstmp1#3662,msrfield#3663,strfld#3664,datefld#3665,tptfld#3666,shortfld#3667,intfld#3668,longfld#3669L,dblfld#3670,dcml#3671,dcmlfld#3672,dimfld#3673,... 6 more fields] CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ]
> == Physical Plan ==
> *HashAggregate(keys=[designation#3679], functions=[], output=[designation#3679])
> +- Exchange hashpartitioning(designation#3679, 200)
>    +- *HashAggregate(keys=[designation#3679], functions=[], output=[designation#3679])
>       +- *BatchedScan CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ] default.restructure[designation#3679]
> == Results ==
> !== Correct Answer - 1 ==   == Spark Answer - 1 ==
> ![2007-01-17 00:00:00.0]    [null]
>       
> ScalaTestFailureLocation: org.apache.spark.sql.test.util.QueryTest at (QueryTest.scala:87)
> org.scalatest.exceptions.TestFailedException: 
> Results do not match for query:
> == Parsed Logical Plan ==
> 'Distinct
> +- 'Project ['designation]
>    +- 'UnresolvedRelation `restructure`
> == Analyzed Logical Plan ==
> designation: timestamp
> Distinct
> +- Project [designation#3679]
>    +- SubqueryAlias restructure
>       +- Relation[workgroupcategory#3650,workgroupcategoryname#3651,deptno#3652,deptname#3653,projectcode#3654,projectjoindate#3655,projectenddate#3656,attendance#3657,utilization#3658,salary#3659,dict#3660,nodict#3661,tmpstmp1#3662,msrfield#3663,strfld#3664,datefld#3665,tptfld#3666,shortfld#3667,intfld#3668,longfld#3669L,dblfld#3670,dcml#3671,dcmlfld#3672,dimfld#3673,... 6 more fields] CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ]
> == Optimized Logical Plan ==
> CarbonDictionaryCatalystDecoder [CarbonDecoderRelation(Map(dcml#3671 -> dcml#3671, workgroupcategoryname#3651 -> workgroupcategoryname#3651, projectjoindate#3655 -> projectjoindate#3655, dict#3660 -> dict#3660, tmpstmp1#3662 -> tmpstmp1#3662, projectcode#3654 -> projectcode#3654, dimfld1#3674 -> dimfld1#3674, msrcol#3675 -> msrcol#3675, deptno#3652 -> deptno#3652, dcmlfld#3672 -> dcmlfld#3672, tptfld#3666 -> tptfld#3666, dblfld#3670 -> dblfld#3670, workgroupcategory#3650 -> workgroupcategory#3650, empno#3677 -> empno#3677, msrfield#3663 -> msrfield#3663, longfld#3669L -> longfld#3669L, intfld#3668 -> intfld#3668, shortfld#3667 -> shortfld#3667, dimfld#3673 -> dimfld#3673, datefld#3665 -> datefld#3665, attendance#3657 -> attendance#3657, deptname#3653 -> deptname#3653, projectenddate#3656 -> projectenddate#3656, salary#3659 -> salary#3659, doj#3678 -> doj#3678, nodict#3661 -> nodict#3661, strfld#3664 -> strfld#3664, utilization#3658 -> utilization#3658, empname#3676 -> empname#3676, designation#3679 -> designation#3679),CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ])], ExcludeProfile(ArrayBuffer()), CarbonAliasDecoderRelation(), true
> +- Aggregate [designation#3679], [designation#3679]
>    +- Project [designation#3679]
>       +- Relation[workgroupcategory#3650,workgroupcategoryname#3651,deptno#3652,deptname#3653,projectcode#3654,projectjoindate#3655,projectenddate#3656,attendance#3657,utilization#3658,salary#3659,dict#3660,nodict#3661,tmpstmp1#3662,msrfield#3663,strfld#3664,datefld#3665,tptfld#3666,shortfld#3667,intfld#3668,longfld#3669L,dblfld#3670,dcml#3671,dcmlfld#3672,dimfld#3673,... 6 more fields] CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ]
> == Physical Plan ==
> *HashAggregate(keys=[designation#3679], functions=[], output=[designation#3679])
> +- Exchange hashpartitioning(designation#3679, 200)
>    +- *HashAggregate(keys=[designation#3679], functions=[], output=[designation#3679])
>       +- *BatchedScan CarbonDatasourceHadoopRelation [ Database name :default, Table name :restructure, Schema :Some(StructType(StructField(workgroupcategory,IntegerType,true), StructField(workgroupcategoryname,StringType,true), StructField(deptno,IntegerType,true), StructField(deptname,StringType,true), StructField(projectcode,IntegerType,true), StructField(projectjoindate,TimestampType,true), StructField(projectenddate,TimestampType,true), StructField(attendance,IntegerType,true), StructField(utilization,IntegerType,true), StructField(salary,IntegerType,true), StructField(dict,IntegerType,true), StructField(nodict,StringType,true), StructField(tmpstmp1,TimestampType,true), StructField(msrfield,DecimalType(5,2),true), StructField(strfld,StringType,true), StructField(datefld,DateType,true), StructField(tptfld,TimestampType,true), StructField(shortfld,ShortType,true), StructField(intfld,IntegerType,true), StructField(longfld,LongType,true), StructField(dblfld,DoubleType,true), StructField(dcml,DecimalType(5,4),true), StructField(dcmlfld,DecimalType(5,4),true), StructField(dimfld,StringType,true), StructField(dimfld1,StringType,true), StructField(msrcol,DoubleType,true), StructField(empname,StringType,true), StructField(empno,IntegerType,true), StructField(doj,TimestampType,true), StructField(designation,TimestampType,true))) ] default.restructure[designation#3679]
> == Results ==
> !== Correct Answer - 1 ==   == Spark Answer - 1 ==
> ![2007-01-17 00:00:00.0]    [null]
>       
> 	at org.scalatest.Assertions$class.newAssertionFailedException(Assertions.scala:495)
> 	at org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1555)
> 	at org.scalatest.Assertions$class.fail(Assertions.scala:1328)
> 	at org.scalatest.FunSuite.fail(FunSuite.scala:1555)
> 	at org.apache.spark.sql.test.util.QueryTest.checkAnswer(QueryTest.scala:87)
> 	at org.apache.spark.sql.test.util.QueryTest.checkAnswer(QueryTest.scala:93)
> 	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase$$anonfun$21.apply$mcV$sp(AlterTableValidationTestCase.scala:325)
> 	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase$$anonfun$21.apply(AlterTableValidationTestCase.scala:307)
> 	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase$$anonfun$21.apply(AlterTableValidationTestCase.scala:307)
> 	at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
> 	at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
> 	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
> 	at org.scalatest.Transformer.apply(Transformer.scala:22)
> 	at org.scalatest.Transformer.apply(Transformer.scala:20)
> 	at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166)
> 	at org.apache.spark.sql.test.util.CarbonFunSuite.withFixture(CarbonFunSuite.scala:41)
> 	at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:163)
> 	at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
> 	at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
> 	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
> 	at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:175)
> 	at org.scalatest.FunSuite.runTest(FunSuite.scala:1555)
> 	at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
> 	at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
> 	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413)
> 	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)
> 	at scala.collection.immutable.List.foreach(List.scala:381)
> 	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
> 	at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396)
> 	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483)
> 	at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:208)
> 	at org.scalatest.FunSuite.runTests(FunSuite.scala:1555)
> 	at org.scalatest.Suite$class.run(Suite.scala:1424)
> 	at org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1555)
> 	at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
> 	at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
> 	at org.scalatest.SuperEngine.runImpl(Engine.scala:545)
> 	at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:212)
> 	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase.org$scalatest$BeforeAndAfterAll$$super$run(AlterTableValidationTestCase.scala:34)
> 	at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257)
> 	at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256)
> 	at org.apache.spark.carbondata.restructure.AlterTableValidationTestCase.run(AlterTableValidationTestCase.scala:34)
> 	at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:55)
> 	at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$3.apply(Runner.scala:2563)
> 	at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$3.apply(Runner.scala:2557)
> 	at scala.collection.immutable.List.foreach(List.scala:381)
> 	at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:2557)
> 	at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1044)
> 	at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1043)
> 	at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:2722)
> 	at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1043)
> 	at org.scalatest.tools.Runner$.run(Runner.scala:883)
> 	at org.scalatest.tools.Runner.run(Runner.scala)
> 	at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.runScalaTest2(ScalaTestRunner.java:138)
> 	at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:28)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)