ajantha-bhat commented on a change in pull request #3083: [CARBONDATA-3257] Fix for NO_SORT load and describe formatted being in NO_SORT flow even with Sort Columns given
URL:
https://github.com/apache/carbondata/pull/3083#discussion_r249647387
##########
File path: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/table/CarbonDescribeFormattedCommand.scala
##########
@@ -54,8 +54,12 @@ private[sql] case class CarbonDescribeFormattedCommand(
val carbonTable = relation.carbonTable
val tblProps = carbonTable.getTableInfo.getFactTable.getTableProperties.asScala
+ // If Sort Columns are given and Sort Scope is not given then pass LOCAL_SORT
+ // as the sort scope, else pass NO_SORT
val sortScope = if (carbonTable.getNumberOfSortColumns == 0) {
"NO_SORT"
+ } else if (!tblProps.contains("sort_scope")) {
Review comment:
Need to consider carbon properties (session param) also ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[hidden email]
With regards,
Apache Git Services