Github user lion-x commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/219#discussion_r82722044
  
    --- Diff: 
core/src/main/java/org/apache/carbondata/core/keygenerator/directdictionary/timestamp/TimeStampDirectDictionaryGenerator.java
 ---
    @@ -117,15 +117,24 @@ private TimeStampDirectDictionaryGenerator() {
        * @return dictionary value
        */
       @Override public int generateDirectSurrogateKey(String memberStr) {
    -    SimpleDateFormat timeParser = new 
SimpleDateFormat(CarbonProperties.getInstance()
    -        .getProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT,
    -            CarbonCommonConstants.CARBON_TIMESTAMP_DEFAULT_FORMAT));
    +    String timeString;
    +    String formatString;
    +    if (memberStr.contains(CarbonCommonConstants.COLON_SPC_CHARACTER)){
    --- End diff --
    
    because in some format like XXXX-XX-XX 00:00:00.000, it has colon, it will 
make mistake when separating the memberstring.
    for example member string like, 2016-08-11 00:00:00.000:yyyy-MM-dd 
HH.mm.ss.SSS


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

Reply via email to