akashrn5 commented on a change in pull request #3436: [WIP]Geospatial Support: 
Modified to create and load table with invisible dimension sort column
URL: https://github.com/apache/carbondata/pull/3436#discussion_r345032275
 
 

 ##########
 File path: 
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/table/CarbonDescribeFormattedCommand.scala
 ##########
 @@ -53,6 +53,21 @@ private[sql] case class CarbonDescribeFormattedCommand(
       (field.name, field.dataType.simpleString, colComment)
     }
 
+    /* Append non-schema columns */
+    val columns = 
relation.carbonTable.getTableInfo.getFactTable.getListOfColumns.asScala
+    val implicitColumns = for (column <- columns if column.getSchemaOrdinal == 
-1) yield {
+      (column.getColumnName, column.getDataType.getName.toLowerCase, "")
+    }
+
+    if (implicitColumns.nonEmpty) {
+      results ++= Seq(
+        ("", "", ""),
+        ("## Non-Schema Columns", "", "")
+      )
+
 
 Review comment:
   remove empty lines

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to