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: us...@infra.apache.org With regards, Apache Git Services