LuciferYang commented on code in PR #40610: URL: https://github.com/apache/spark/pull/40610#discussion_r1217782230
########## connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/ClientE2ETestSuite.scala: ########## @@ -30,21 +31,33 @@ import org.apache.commons.io.FileUtils import org.apache.commons.io.output.TeeOutputStream import org.apache.commons.lang3.{JavaVersion, SystemUtils} import org.scalactic.TolerantNumerics +import org.scalatest.PrivateMethodTester import org.scalatest.concurrent.Eventually._ import org.apache.spark.{SPARK_VERSION, SparkException} import org.apache.spark.sql.catalyst.encoders.AgnosticEncoders.StringEncoder import org.apache.spark.sql.catalyst.expressions.GenericRowWithSchema import org.apache.spark.sql.catalyst.parser.ParseException -import org.apache.spark.sql.connect.client.SparkConnectClient +import org.apache.spark.sql.connect.client.{SparkConnectClient, SparkResult} import org.apache.spark.sql.connect.client.util.{IntegrationTestUtils, RemoteSparkSession} import org.apache.spark.sql.connect.client.util.SparkConnectServerUtils.port import org.apache.spark.sql.functions._ import org.apache.spark.sql.internal.SQLConf import org.apache.spark.sql.types._ +import org.apache.spark.sql.vectorized.ColumnarBatch import org.apache.spark.util.ThreadUtils -class ClientE2ETestSuite extends RemoteSparkSession with SQLHelper { +class ClientE2ETestSuite extends RemoteSparkSession with SQLHelper with PrivateMethodTester { + // Helper methods for accessing private methods/fields + private val _idxToBatches = Review Comment: I suggest moving `_idxToBatches` and `getColumnarBatches` inside `Dataset result destructive iterator` because it is only used by `Dataset result destructive iterator`. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org