danny0405 commented on code in PR #11727:
URL: https://github.com/apache/hudi/pull/11727#discussion_r1704798193
##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/utils/TestData.java:
##########
@@ -413,6 +419,139 @@ public class TestData {
TimestampData.fromEpochMillis(i), i,
DecimalData.fromBigDecimal(new BigDecimal(String.format("%d.%d%d", i, i, i)),
3, 2))));
}
+ public static final DataType ARRAY_OF_ROWS_DATA_TYPE = DataTypes.ROW(
+ DataTypes.FIELD("uuid", DataTypes.VARCHAR(20)),// record key
+ DataTypes.FIELD("partition", DataTypes.VARCHAR(10)),
+ DataTypes.FIELD("ts", DataTypes.TIMESTAMP(3)), // precombine
field
+ DataTypes.FIELD("data", DataTypes.ARRAY( DataTypes.ROW(
+ DataTypes.FIELD("name", DataTypes.VARCHAR(10)),
+ DataTypes.FIELD("age", DataTypes.INT())
+ ))))
+ .notNull();
+
+ public static final RowType ARRAY_OF_ROWS_TYPE = (RowType)
ARRAY_OF_ROWS_DATA_TYPE.getLogicalType();
Review Comment:
We can put the `RowType` and `DataType` in `TestConfigurations`.
--
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]