[
https://issues.apache.org/jira/browse/BEAM-8388?focusedWorklogId=703378&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-703378
]
ASF GitHub Bot logged work on BEAM-8388:
----------------------------------------
Author: ASF GitHub Bot
Created on: 04/Jan/22 15:43
Start Date: 04/Jan/22 15:43
Worklog Time Spent: 10m
Work Description: RustedBones commented on a change in pull request
#16271:
URL: https://github.com/apache/beam/pull/16271#discussion_r778182570
##########
File path:
sdks/java/core/src/main/java/org/apache/beam/sdk/coders/AvroCoder.java
##########
@@ -272,26 +263,8 @@ public Schema get() {
}
}
- /**
- * A {@link Serializable} object that lazily supplies a {@link ReflectData}
built from the
- * appropriate {@link ClassLoader} for the type encoded by this {@link
AvroCoder}.
- */
- private static class SerializableReflectDataSupplier
- implements Serializable, Supplier<ReflectData> {
-
- private final Class<?> clazz;
-
- private SerializableReflectDataSupplier(Class<?> clazz) {
- this.clazz = clazz;
- }
-
- @Override
- public ReflectData get() {
- ReflectData reflectData = new ReflectData(clazz.getClassLoader());
- reflectData.addLogicalTypeConversion(new JodaTimestampConversion());
- return reflectData;
- }
- }
+ private final AvroSource.DatumReaderFactory<T> readerFactory;
+ private final AvroSink.DatumWriterFactory<T> writerFactory;
Review comment:
Edit: I've added the factories in the constructor.
`AvroCoderCloudObjectTranslator` will not take in account custom factories
in current versions
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 703378)
Remaining Estimate: 18h 10m (was: 18h 20m)
Time Spent: 5h 50m (was: 5h 40m)
> Update Avro to 1.9.1 from 1.8.2
> -------------------------------
>
> Key: BEAM-8388
> URL: https://issues.apache.org/jira/browse/BEAM-8388
> Project: Beam
> Issue Type: Improvement
> Components: io-java-avro
> Reporter: Jordanna Chord
> Priority: P3
> Original Estimate: 24h
> Time Spent: 5h 50m
> Remaining Estimate: 18h 10m
>
> Update build dependency to 1.9.1
--
This message was sent by Atlassian Jira
(v8.20.1#820001)