JingsongLi commented on code in PR #138: URL: https://github.com/apache/flink-table-store/pull/138#discussion_r885234306
########## flink-table-store-core/src/main/java/org/apache/flink/table/store/file/utils/FileStorePathFactory.java: ########## @@ -61,20 +61,24 @@ public FileStorePathFactory(Path root, RowType partitionType, String defaultPart this.root = root; this.uuid = UUID.randomUUID().toString(); - String[] partitionColumns = partitionType.getFieldNames().toArray(new String[0]); - this.partitionComputer = - new RowDataPartitionComputer( - defaultPartValue, - partitionColumns, - partitionType.getFields().stream() - .map(f -> LogicalTypeDataTypeConverter.toDataType(f.getType())) - .toArray(DataType[]::new), - partitionColumns); + this.partitionComputer = getPartitionComputer(partitionType, defaultPartValue); this.manifestFileCount = new AtomicInteger(0); this.manifestListCount = new AtomicInteger(0); } + public static RowDataPartitionComputer getPartitionComputer( Review Comment: Add a `@VisibleForTesting`? -- 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...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org