Github user chenerlu commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1321#discussion_r138853538
--- Diff:
integration/spark/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchema.scala
---
@@ -432,7 +440,9 @@ 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) null else
tableProperties.get("sort_scope")
--- End diff --
I use CarbonCommonConstants.LOAD_SORT_SCOPE_DEFAULT as its default value.
---