Github user lion-x commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/118#discussion_r77618003
  
    --- Diff: 
integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/dataload/TestLoadDataWithHiveSyntax.scala
 ---
    @@ -590,6 +590,23 @@ class TestLoadDataWithHiveSyntax extends QueryTest 
with BeforeAndAfterAll {
         checkAnswer(sql("select * from carbontable1"), sql("select * from 
hivetable1"))
       }
     
    +  test("test data loading with comment option") {
    +    sql("drop table if exists comment_test")
    +    sql(
    +      "create table comment_test(imei string, age int, task bigint, num 
double, level decimal(10," +
    +        "3), productdate timestamp, mark int, name string) STORED BY 
'org.apache.carbondata.format'"
    +    )
    +    sql(
    +      "LOAD DATA local inpath './src/test/resources/comment.csv' INTO 
TABLE comment_test " +
    +        "options('DELIMITER' = ',', 'QUOTECHAR' = '.', 'COMMENTCHAR' = 
'?','FILEHEADER'='imei,age,task,num,level,productdate,mark,name')"
    +    )
    +    checkAnswer(sql("select imei from 
comment_test"),Seq(Row("\"huawei"),Row("#huawei"), Row(""),
    +      Row("~huawei")))
    +    sql("drop table if exists comment_test")
    --- End diff --
    
    ok


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to