You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2020/02/29 07:01:57 UTC

[GitHub] [carbondata] jackylk commented on a change in pull request #3629: [CARBONDATA-3716] Fixed spark 2.4 UT failures

jackylk commented on a change in pull request #3629: [CARBONDATA-3716] Fixed spark 2.4 UT failures 
URL: https://github.com/apache/carbondata/pull/3629#discussion_r386008073
 
 

 ##########
 File path: integration/spark/src/main/scala/org/apache/spark/sql/execution/command/management/RefreshCarbonTableCommand.scala
 ##########
 @@ -154,18 +156,36 @@ case class RefreshCarbonTableCommand(
       tableInfo: TableInfo,
       tablePath: String)(sparkSession: SparkSession): Any = {
     val operationContext = new OperationContext
+    var allowCreateTableNonEmptyLocation: String = null
+    val allowCreateTableNonEmptyLocationConf =
+      "spark.sql.legacy.allowCreatingManagedTableUsingNonemptyLocation"
     try {
       val refreshTablePreExecutionEvent: RefreshTablePreExecutionEvent =
         new RefreshTablePreExecutionEvent(sparkSession,
           tableInfo.getOrCreateAbsoluteTableIdentifier())
+      if (SparkUtil.isSparkVersionEqualTo("2.4")) {
 
 Review comment:
   use equalToOrAbove

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services