Re: carbondata timestamp has a bug

2019-03-30 Thread ManishNalla
Hi Jocean, The timestamp format which you specify by doing this: CarbonProperties.getInstance() .addProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT, "/MM/dd HH:mm:ss") is only for taking the input in this format. The output displayed when you query will always be in the default forma

Re: carbondata timestamp has a bug

2019-03-22 Thread xm_zzc
You can try to use this way: spark.readStream .format("socket") .option("host", "localhost") .option("port", 9099) .option("timestampformat", "-MM-dd HH:mm:ss") .option("dateformat", "-MM-dd HH:mm:ss") -- Sent from: http://apache-carbondata-dev-mailing-list-archive.1130

Re: carbondata timestamp has a bug

2019-03-22 Thread Jocean shi
yes.I do xm_zzc <441586...@qq.com> 于2019年3月23日周六 下午1:14写道: > Do you add below code before creating CarbonSession: > > CarbonProperties.getInstance() > .addProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT, "/MM/dd > HH:mm:ss") > .addProperty(CarbonCommonConstants.CARBON_DATE_FORMAT, "yyy

Re: carbondata timestamp has a bug

2019-03-22 Thread xm_zzc
Do you add below code before creating CarbonSession: CarbonProperties.getInstance() .addProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT, "/MM/dd HH:mm:ss") .addProperty(CarbonCommonConstants.CARBON_DATE_FORMAT, "/MM/dd") val spark = SparkSession .builder() .master("loca

Re: carbondata timestamp has a bug

2019-03-22 Thread Jocean shi
Hi: I have used 'CARBON_TIMESTAMP_FORMAT' parameter.But it don't have effect in Streaming table. I have created a issue Best Jocean.shi xm_zzc <441586...@qq.com> 于2019年3月23日周六 下午12:59写道: > Do you mean that you want to define the format of timestamp? You can use > 'CARBON_TIMESTAMP_FORMAT' par

Re: carbondata timestamp has a bug

2019-03-22 Thread xm_zzc
Do you mean that you want to define the format of timestamp? You can use 'CARBON_TIMESTAMP_FORMAT' parameter. -- Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/

carbondata timestamp has a bug

2019-03-22 Thread Jocean shi
Hi: The method buildCarbonLoadModelForStream of class StreamSinkFactory. The carbonLoadModel only add some CarbonProperties but don't has CarbonCommonConstants.CARBON_TIMESTAMP. so CarbonCommonConstants.CARBON_TIMESTAMP. don't has effect. Best Jocean.shi