You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/03/18 02:12:13 UTC
[GitHub] [incubator-druid] es1220 opened a new pull request #7282: Enhance
orc-extensions - use orc file schema
es1220 opened a new pull request #7282: Enhance orc-extensions - use orc file schema
URL: https://github.com/apache/incubator-druid/pull/7282
`orc-extensions` uses custom struct `typeString`. (user configuration or druid parser auto making)
`typeString` is an unstable and has the potential to make a mistake. (such as column order, type ..)
So, I create **`DruidOrcNewInputFormat`** and **`druid_orc`** parser type.
Now, if you change only the `inputFormat` and parser `type`, you can easily ingest the orc file like a `parquet-extensions` without any `typeString` errors.
- `DruidOrcNewInputFormat`
- has `OrcNewInputFormat`
- creates `DruidOrcRecordReader` and store file schema
- `DruidOrcRecordReader`
- converts `OrcStruct` to `Map<String, Object>` by stored file schema.
(This has moved the existing process in `OrcHadoopInputRowParser`.)
- `DruidOrcHadoopInputRowParser`
- converts `Map` to `MapBasedInputRow`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org