KnightChess commented on a change in pull request #3609:
URL: https://github.com/apache/iceberg/pull/3609#discussion_r757342527
##########
File path: core/src/main/java/org/apache/iceberg/PartitionsTable.java
##########
@@ -46,7 +46,7 @@
super(ops, table, name);
this.schema = new Schema(
- Types.NestedField.required(1, "partition",
table.spec().partitionType()),
+ Types.NestedField.required(1, "partition",
table.spec().maxPartitionType(table.specs())),
Types.NestedField.required(2, "record_count", Types.LongType.get()),
Types.NestedField.required(3, "file_count", Types.IntegerType.get())
);
Review comment:
use max to solve after spark WholeStageCodegen, getType error.
If not, when use `days(ts)`, then drop it. The spark will use ts type:
timestamp in schema, then genCode is `project_tmpInput_0.getLong(0)`. But the
partition data value type is int.
--
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]