wypoon commented on a change in pull request #1508:
URL: https://github.com/apache/iceberg/pull/1508#discussion_r733917086
##########
File path:
spark/v2.4/spark2/src/test/java/org/apache/iceberg/spark/source/TestIcebergSourceTablesBase.java
##########
@@ -68,8 +73,24 @@
optional(2, "data", Types.StringType.get())
);
+ private static final Schema SCHEMA2 = new Schema(
+ optional(1, "id", Types.IntegerType.get()),
+ optional(2, "data", Types.StringType.get()),
+ optional(3, "category", Types.StringType.get())
+ );
+
+ private static final Schema SCHEMA3 = new Schema(
+ optional(1, "id", Types.IntegerType.get()),
+ optional(3, "category", Types.StringType.get())
+ );
+
private static final PartitionSpec SPEC =
PartitionSpec.builderFor(SCHEMA).identity("id").build();
+ // for temporary use until reading a snapshot using the snapshot schema is
implemented in Spark 3
+ private static boolean isSpark2() {
+ return package$.MODULE$.SPARK_VERSION_SHORT().startsWith("2");
+ }
Review comment:
No longer needed following code duplication between v2.4 and v3.0.
--
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]