RussellSpitzer commented on code in PR #12494: URL: https://github.com/apache/iceberg/pull/12494#discussion_r2047246939
########## spark/v4.0/spark/src/test/java/org/apache/iceberg/spark/actions/TestComputeTableStatsAction.java: ########## @@ -392,7 +392,13 @@ private Dataset<Row> randomDataDF(Schema schema) { Iterable<InternalRow> rows = RandomData.generateSpark(schema, 10, 0); JavaRDD<InternalRow> rowRDD = sparkContext.parallelize(Lists.newArrayList(rows)); StructType rowSparkType = SparkSchemaUtil.convert(schema); - return spark.internalCreateDataFrame(JavaRDD.toRDD(rowRDD), rowSparkType, false); + if (!(spark instanceof org.apache.spark.sql.classic.SparkSession)) { + throw new IllegalArgumentException( + "spark is supposed to be org.apache.spark.sql.classic.SparkSession"); Review Comment: Error message again -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org