carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravipesala <...@git.apache.org>
Subject [GitHub] carbondata pull request #1524: [CARBONDATA-1762] Remove existing column leve...
Date Fri, 17 Nov 2017 12:34:07 GMT
Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1524#discussion_r151674289
  
    --- Diff: integration/spark2/src/main/scala/org/apache/carbondata/spark/rdd/CarbonDataRDDFactory.scala
---
    @@ -799,18 +799,19 @@ object CarbonDataRDDFactory {
           throw new DataLoadingException("Partition column not found.")
         }
     
    -    val dateFormatMap = CarbonDataProcessorUtil.getDateFormatMap(carbonLoadModel.getDateFormat)
    -    val specificFormat = Option(dateFormatMap.get(partitionColumn.toLowerCase))
    -    val timeStampFormat = if (specificFormat.isDefined) {
    -      new SimpleDateFormat(specificFormat.get)
    +    val specificTimestampFormat = carbonLoadModel.getTimestampformat
    +    val specificDateFormat = carbonLoadModel.getDateFormat
    +    val timeStampFormat = if (specificTimestampFormat != null &&
    +                              !specificTimestampFormat.trim.isEmpty) {
    --- End diff --
    
    format it properly.


---

Mime
View raw message