You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by jackylk <gi...@git.apache.org> on 2017/04/27 20:24:29 UTC

[GitHub] incubator-carbondata pull request #849: [CARBONDATA-992] Fix error of Exampl...

Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/849#discussion_r113793605
  
    --- Diff: examples/spark2/src/main/scala/org/apache/carbondata/examples/CarbonSessionExample.scala ---
    @@ -34,7 +34,10 @@ object CarbonSessionExample {
         val metastoredb = s"$rootPath/examples/spark2/target"
     
         CarbonProperties.getInstance()
    -      .addProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT, "yyyy/MM/dd")
    +      .addProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT, "yyyy/MM/dd HH:mm:ss")
    +
    +    CarbonProperties.getInstance()
    +      .addProperty(CarbonCommonConstants.CARBON_DATE_FORMAT, "yyyy/MM/dd")
    --- End diff --
    
    you can use `addProperty` directly on return value of last `addProperty`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---