Comments (4)
I think this would be really handy. I've written some code to go from Jackson annotated POJOs to Parquet via Avro and it seems that the only way to achieve this with Jackson is:
Convert Pojos to Avro (byte array) -> Convert byte array to GenericRecord -> Convert GenericRecord to Parquet
Having a direct conversion from POJO to Avro GenericRecord and the like would simplify things greatly, and I assume improve performance.
from jackson-dataformats-binary.
Yes, this would be useful. The only (?) tactical question here is whether it'd make sense to add maybe jackson-datatype-avro
, since we may want to avoid dep to std avro lib in future (currently we still use it for serialization, schema handling) -- may or may not happen. Conceptually this would then be a datatype, and would nicely plug in via ser/deser interfaces.
At the same time of course there's the question of practicality: just adding support here would be simpler. Maybe this package could plug in datatype handlers optionally, via AvroMapper
(and allow use as separate thing too).
from jackson-dataformats-binary.
I second the need, with the same use case as @HunterSherms.
By the way @HunterSherms are you still using this solution or have you found better ways to avoid extra conversion?
from jackson-dataformats-binary.
Unfortunately I did not find a better solution. After writing the code linked above I moved on to other projects. Best of luck!
from jackson-dataformats-binary.
Related Issues (20)
- `IonReader` throws `NullPointerException` for unchecked invalid data
- `SmileParser` throws unexpected IOOBE for corrupt content HOT 1
- `IonParser.getIntValue()` fails or does not handle value overflow checks HOT 1
- CBOR: negative BigInteger values not handled correctly HOT 1
- More methods from `IonReader` could throw an unexpected `AssertionError`
- Unexpected `NullPointerException` thrown from `IonParser::getNumberType()` HOT 1
- `IonFactory.createParser(IonReader)` does not initialize state
- `IonReader.next()` throws NPEs for some invalid content
- Implement `JsonParser.getNumberTypeFP()` for binary backends HOT 1
- `IndexOutOfBoundsException` in `JacksonAvroParserImpl` for invalid input
- `IndexOutOfBoundsException` in `CBORParser` for invalid input
- Unexpected NullPointerException in `CBORParser`
- Unexpected `NullPointerException` in `ProtobufParser.currentName()`
- `ProtobufParser.currentName()` returns wrong value at root level
- Unexpected `ArrayIndexOutOfBoundsException` in `CBORParser` for corrupt String value
- IonReader.newBytes() throwing `NegativeArraySizeException` HOT 1
- `IonReader` throws `AssertionError` for Timestamp value HOT 1
- `IonReader.next()` throws `ArrayIndexOutOfBoundsException` for some corrupt content HOT 4
- Support for `StreamReadConstraints.maxNameLength` validation for CBOR, Smile backends
- protobuf LocalDateTime UnsupportedOperationException HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jackson-dataformats-binary.