Skip to content

typeOverrides not working #91

@jeanwisser

Description

@jeanwisser

I am using the following configuration:

<plugin>
                <groupId>at.makubi.maven.plugin</groupId>
                <artifactId>avrohugger-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>generate-scala-sources</goal>
                        </goals>
                        <configuration>
                            <sourceDirectory>${project.basedir}/avro</sourceDirectory>
                            <typeOverrides>
                                <timestampMillisType>JAVA_TIME_INSTANT</timestampMillisType>
                            </typeOverrides>
                        </configuration>
                    </execution>
                </executions>
</plugin>

with the following avro schema:

protocol metrics {
  record Metric {
    string metricName;
    @logicalType("timestamp-millis")
    long executionTimestamp;
  }
}

The build and case class generation works fine but I am seeing that the executionTimestamp parameter is Long and not java.time.Instant as I would expect.
Is there something wrong with my configuration ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions