rdblue commented on code in PR #11904:
URL: https://github.com/apache/iceberg/pull/11904#discussion_r1925923531
##########
parquet/src/main/java/org/apache/iceberg/data/parquet/BaseParquetWriter.java:
##########
@@ -50,6 +54,32 @@ protected ParquetValueWriter<T> createWriter(MessageType
type) {
protected abstract ParquetValueWriters.StructWriter<T> createStructWriter(
List<ParquetValueWriter<?>> writers);
+ protected ParquetValueWriter<?> fixedWriter(ColumnDescriptor desc) {
+ return new FixedWriter(desc);
+ }
+
+ protected ParquetValueWriters.PrimitiveWriter<?> dateWriter(ColumnDescriptor
desc) {
+ return new DateWriter(desc);
+ }
+
+ protected ParquetValueWriters.PrimitiveWriter<?> timeWriter(ColumnDescriptor
desc) {
+ return new TimeWriter(desc);
+ }
+
+ protected ParquetValueWriters.PrimitiveWriter<?> timestampWriter(
+ ColumnDescriptor desc, boolean isAdjustedToUTC) {
+ if (isAdjustedToUTC) {
+ return new TimestamptzWriter(desc);
+ } else {
+ return new TimestampWriter(desc);
+ }
+ }
+
+ protected ParquetValueWriters.PrimitiveWriter<?> uuidWriter(ColumnDescriptor
desc) {
+ // Use primitive-type writer; no special writer needed.
Review Comment:
That doesn't work because the UUID representation is `UUID`.
--
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]