You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2021/01/21 23:26:31 UTC

[GitHub] [iceberg] rdblue commented on a change in pull request #2132: Spark: Minor refactoring for the cardinality check in MERGE

rdblue commented on a change in pull request #2132:
URL: https://github.com/apache/iceberg/pull/2132#discussion_r562263772



##########
File path: spark3-extensions/src/main/scala/org/apache/spark/sql/catalyst/optimizer/RewriteMergeInto.scala
##########
@@ -216,8 +215,10 @@ case class RewriteMergeInto(spark: SparkSession) extends Rule[LogicalPlan] with
   }
 
   private def isCardinalityCheckEnabled(table: Table): Boolean = {
-    PropertyUtil.propertyAsBoolean(table.properties(),
-      MERGE_WRITE_CARDINALITY_CHECK, MERGE_WRITE_CARDINALITY_CHECK_DEFAULT)
+    PropertyUtil.propertyAsBoolean(
+      table.properties(),
+      MERGE_CARDINALITY_CHECK_ENABLED,
+      MERGE_CARDINALITY_CHECK_ENABLED_DEFAULT)

Review comment:
       This has a few places that don't really need to be refomatted, like this. It should be okay since these are new and it is unlikely that anyone is cherry-picking these commits, but I'd prefer to avoid them in the future.




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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org