[ 
https://issues.apache.org/jira/browse/HUDI-7081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17911638#comment-17911638
 ] 

Lin Liu commented on HUDI-7081:
-------------------------------

I have checked our existing test `TestEventTimeMerging`, we can see that the 
log file contains enum type: `TripType`, and all tests have passed properly. 
Therefore, this issue should have been fixed already.

What I will do is to remove disablement of the fg reader in relevant tests to 
see if all tests pass.

> Hoodie FilegroupReader cannot read Enums from MOR avro log blocks
> -----------------------------------------------------------------
>
>                 Key: HUDI-7081
>                 URL: https://issues.apache.org/jira/browse/HUDI-7081
>             Project: Apache Hudi
>          Issue Type: Sub-task
>            Reporter: Jonathan Vexler
>            Assignee: Lin Liu
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 1.0.1
>
>
> {code:java}
> buildFileGroupIterator(
>   Option.empty[PartitionedFile => Iterator[InternalRow]],
>   partitionValues,
>   Option.empty[HoodieBaseFile],
>   getLogFilesFromSlice(fileSlice),
>   requiredSchemaWithMandatory,
>   outputSchema,
>   partitionSchema,
>   broadcastedHadoopConf.value.value,
>   -1,
>   -1,
>   shouldUseRecordPosition
> ) {code}
> This only uses StructType schemas and converts to avro. So it thinks enums 
> are strings



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to