Github user qiuchenjian commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2993#discussion_r242435030
  
    --- Diff: 
integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/createTable/TestCreateDDLForComplexMapType.scala
 ---
    @@ -442,4 +441,45 @@ class TestCreateDDLForComplexMapType extends QueryTest 
with BeforeAndAfterAll {
             "sort_columns is unsupported for map datatype column: mapfield"))
       }
     
    +  test("Data Load Fail Issue") {
    +    sql("DROP TABLE IF EXISTS carbon")
    +    sql(
    +      s"""
    +         | CREATE TABLE carbon(
    +         | mapField map<INT,STRING>
    +         | )
    +         | STORED BY 'carbondata'
    +         | """
    +        .stripMargin)
    +    sql(
    +      s"""
    +         | LOAD DATA LOCAL INPATH '$path'
    +         | INTO TABLE carbon OPTIONS(
    +         | 'header' = 'false')
    +       """.stripMargin)
    +    sql("INSERT INTO carbon SELECT * FROM carbon")
    +    checkAnswer(sql("select * from carbon"), Seq(
    +      Row(Map(1 -> "Nalla", 2 -> "Singh", 4 -> "Kumar")),
    +      Row(Map(1 -> "Nalla", 2 -> "Singh", 4 -> "Kumar")),
    +      Row(Map(10 -> "Nallaa", 20 -> "Sissngh", 100 -> "Gusspta", 40 -> 
"Kumar")),
    +      Row(Map(10 -> "Nallaa", 20 -> "Sissngh", 100 -> "Gusspta", 40 -> 
"Kumar"))
    +      ))
    +  }
    +
    +  test("Struct inside map") {
    +    sql("DROP TABLE IF EXISTS carbon")
    --- End diff --
    
    Why is there no result check for this test case of "Stunct inside map“”


---

Reply via email to