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 Thu, 14 Sep 2017 10:15:24 GMT
Github user chenerlu commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1321#discussion_r138852185
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
---
    @@ -344,6 +345,13 @@ case class CreateTable(cm: TableModel, createDSTable: Boolean = true)
extends Ru
     
         val tableInfo: TableInfo = TableNewProcessor(cm)
     
    +    // Add validation for sort scope when create table
    +    val sortScope = tableInfo.getFactTable.getTableProperties.get("sort_scope")
    +    if (null != sortScope && !CarbonUtil.isValidSortOption(sortScope)) {
    --- End diff --
    
    ok, I will provide default value instead of null, then I will remove this


---

Mime
View raw message