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

[jira] [Created] (CARBONDATA-2401) Date and Timestamp options are not working in SDK

Babulal created CARBONDATA-2401:
-----------------------------------

             Summary: Date and Timestamp options are not working in SDK
                 Key: CARBONDATA-2401
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2401
             Project: CarbonData
          Issue Type: Bug
            Reporter: Babulal


Run Below Program

 

val fields: Array[Field] = new Array[Field](3)
 fields(0) = new Field("stringField", DataTypes.STRING)
 fields(1) = new Field("intField", DataTypes.INT)
 fields(2) = new Field("mydate", DataTypes.DATE)


 var loaoption = Map("bad_records_logger_enable" -> "true","bad_records_action" -> "FAIL","bad_record_path" -> "D:/data/bardrecords","dateformat" -> "dd-MM-yyyy").asJava
 val builder: CarbonWriterBuilder = CarbonWriter.builder.withSchema(new Schema(fields))
 .isTransactionalTable(true).outputPath("D:/data/yyy").taskNo("5").isTransactionalTable(false).withLoadOptions(loaoption)
 val writer: CarbonWriter = builder.buildWriterForCSVInput
 val startime=System.currentTimeMillis();
 writer.write(Array("babu","1","02-01-2002"));
writer.close()

 

 

Actual:- Data loading is failed 

Expected :- data loading should be success as date is correct . 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)