rahil-c commented on code in PR #18328:
URL: https://github.com/apache/hudi/pull/18328#discussion_r2977023669
##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/io/storage/row/HoodieRowParquetWriteSupport.java:
##########
@@ -518,6 +553,14 @@ private Type convertField(HoodieSchema fieldSchema,
StructField structField, Typ
.as(LogicalTypeAnnotation.decimalType(scale, precision))
.length(Decimal.minBytesForPrecision()[precision])
.named(structField.name());
+ } else if (dataType instanceof ArrayType
+ && resolvedSchema != null
+ && resolvedSchema.getType() == HoodieSchemaType.VECTOR) {
+ HoodieSchema.Vector vectorSchema = (HoodieSchema.Vector) resolvedSchema;
+ int fixedSize = vectorSchema.getDimension()
+ * vectorSchema.getVectorElementType().getElementSize();
+ return Types.primitive(FIXED_LEN_BYTE_ARRAY, repetition)
Review Comment:
@balaji-varadarajan-ai my question is what benefit do we get from keeping
this info in the file footer or as a column annotation, since no other reader
would be able to interpret this?
--
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]