akashrn5 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_r383132813
##########
File path:
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/management/RefreshCarbonTableCommand.scala
##########
@@ -154,10 +156,20 @@ 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")) {
+ // During refresh table, when this option is set to true, creating
managed tables with
Review comment:
please give a reference of document of spark , in this comment
----------------------------------------------------------------
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]
With regards,
Apache Git Services