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/11 12:53:04 UTC

[GitHub] [incubator-druid] kamaci commented on issue #7027: Auto Detection of Field Types

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:
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