jackylk commented on a change in pull request #3821:
URL: https://github.com/apache/carbondata/pull/3821#discussion_r449408180



##########
File path: 
integration/spark/src/main/scala/org/apache/spark/sql/util/SparkSQLUtil.scala
##########
@@ -165,9 +165,9 @@ object SparkSQLUtil {
      * datatype of column data and corresponding datatype in schema provided 
to create dataframe.
      * Since carbonScanRDD gives Long data for timestamp column and 
corresponding column datatype in
      * schema is Timestamp, this validation fails if we use createDataFrame 
API which takes rdd as
-     * input. Hence, using below API which creates dataframe from tablename.
+     * input. Hence, using below API which creates dataframe from qualified 
tablename.
      */
-    sparkSession.sqlContext.table(carbonTable.getTableName)
+    sparkSession.sqlContext.table(carbonTable.getDatabaseName + "." + 
carbonTable.getTableName)

Review comment:
       Is there a utility for this? I guess no need to construct it ourself




----------------------------------------------------------------
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