carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenerlu <...@git.apache.org>
Subject [GitHub] carbondata pull request #1321: [CARBONDATA-1438] Unify the sort column and s...
Date Sun, 17 Sep 2017 05:07:24 GMT
Github user chenerlu commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1321#discussion_r139301875
  
    --- Diff: integration/spark/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
---
    @@ -433,10 +442,23 @@ case class LoadTable(
           val dateFormat = options.getOrElse("dateformat", null)
           ValidateUtil.validateDateFormat(dateFormat, table, tableName)
           val maxColumns = options.getOrElse("maxcolumns", null)
    -      val sortScope = options.getOrElse("sort_scope", null)
    +
    +      val tableProperties = table.getTableInfo.getFactTable.getTableProperties
    +      val sortScope = if (null == tableProperties) {
    +        CarbonCommonConstants.LOAD_SORT_SCOPE_DEFAULT
    +      } else {
    +        tableProperties.getOrDefault("sort_scope",
    +          CarbonCommonConstants.LOAD_SORT_SCOPE_DEFAULT)
    +      }
    +
    --- End diff --
    
    ok, already update.


---

Mime
View raw message