kamaci commented on issue #7027: Auto Detection of Field Types URL: https://github.com/apache/incubator-druid/issues/7027#issuecomment-471526501 I've started to work on this issue. I have 3 possible solutions on undefined schema fields: 1) If value can be convertible to `Float` than convert to `Float`, otherwise try with `Long`, otherwise go with `String`. 2) If field name ends with `_l,` and is not defined at scheme, and a config value of `schemeless mode` is enabled then convert to `Long`, so on so forth. 3) Create a regex defined field. Accept a regex value and make transformation on it which is a generic solution of 2. i.e.: ``` { "pattern": "*_l", "type": "long" }, { "pattern": "*_f", "type": "float" } ``` @gianm what do you think?
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
