cloud-fan commented on code in PR #41216:
URL: https://github.com/apache/spark/pull/41216#discussion_r1198414077


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LocalRelation.scala:
##########
@@ -78,9 +79,18 @@ case class LocalRelation(
     }
   }
 
-  override def computeStats(): Statistics =
-    Statistics(sizeInBytes = EstimationUtils.getSizePerRow(output) * 
data.length,
-      rowCount = Some(data.length))
+  override def computeStats(): Statistics = {
+    val rowCount: Option[BigInt] = if (Utils.isTesting &&
+      conf.getConfString("spark.sql.test.localRelationRowCount") != "true") {

Review Comment:
   ```suggestion
         conf.getConfString("spark.sql.test.localRelationRowCount", "false") != 
"true") {
   ```



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to