vikramahuja1001 commented on a change in pull request #4141:
URL: https://github.com/apache/carbondata/pull/4141#discussion_r655892561



##########
File path: 
integration/spark/src/main/scala/org/apache/spark/sql/parser/CarbonSpark2SqlParser.scala
##########
@@ -772,58 +774,62 @@ class CarbonSpark2SqlParser extends CarbonDDLSqlParser {
     }
 
   def getFields(schema: Seq[StructField], isExternal: Boolean = false): 
Seq[Field] = {
-    def getScannerInput(col: StructField,
-        columnComment: String,
-        columnName: String) = {
-      if (col.dataType.catalogString == "float" && !isExternal) {
-        '`' + columnName + '`' + " double" + columnComment
+    schema.map { col =>
+      // TODO: Spark has started supporting CharType/VarChar types in Spark 
3.1 but both are
+      //  marked as experimental. Adding a hack to change to string for now.

Review comment:
       Done




-- 
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:
[email protected]


Reply via email to