You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Zhichao Zhang (JIRA)" <ji...@apache.org> on 2019/03/23 05:48:00 UTC
[jira] [Commented] (CARBONDATA-3325) The parameter
CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT and
CarbonCommonConstants.CARBON_DATE_FORMAT don't have effect in streaming
table writing
[ https://issues.apache.org/jira/browse/CARBONDATA-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16799548#comment-16799548 ]
Zhichao Zhang commented on CARBONDATA-3325:
--------------------------------------------
You can try to use this way:
spark.readStream
.format("socket")
.option("host", "localhost")
.option("port", 9099)
.option("timestampformat", "yyyy-MM-dd HH:mm:ss")
.option("dateformat", "yyyy-MM-dd HH:mm:ss")
> The parameter CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT and CarbonCommonConstants.CARBON_DATE_FORMAT don't have effect in streaming table writing
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CARBONDATA-3325
> URL: https://issues.apache.org/jira/browse/CARBONDATA-3325
> Project: CarbonData
> Issue Type: Bug
> Components: spark-integration
> Affects Versions: 1.5.2
> Reporter: jocean.shi@gamil.com
> Priority: Major
> Fix For: 1.5.2
>
> Original Estimate: 96h
> Remaining Estimate: 96h
>
> When I write data into streaming table.
> I use such code:
> CarbonProperties.getInstance()
> .addProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT, "yyyy/MM/dd HH:mm:ss")
> .addProperty(CarbonCommonConstants.CARBON_DATE_FORMAT, "yyyy/MM/dd")
>
> but don't have effect
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)