ajantha-bhat commented on a change in pull request #3821:
URL: https://github.com/apache/carbondata/pull/3821#discussion_r449409262
##########
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:
qualified name is spark usage, so carbon doesn't have utility class for
it. And carbon's uniqueTableName is dbname_tableName, so cannot use it either.
----------------------------------------------------------------
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]