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
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
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
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
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
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/
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