superset-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] jasnovak commented on issue #4740: Add extraction function support for Druid queries
Date Wed, 09 May 2018 16:55:03 GMT
jasnovak commented on issue #4740: Add extraction function support for Druid queries
URL: https://github.com/apache/incubator-superset/pull/4740#issuecomment-387804898
 
 
   Yes, we do both: we create a mapped column using an extraction function, and use it to
filter. Do you click both the "groupable" and  "filterable" box when you create your column?
   
   Also, perhaps there's something amiss in your definition? Try defining like this:
   
   {
     "type": "extraction",
     "dimension": "country",
     "outputName": "country_group",
     "outputType": "STRING",
     "extractionFn": {
       "type": "lookup",
       "dimension": "dimensionName",
       "outputName": "dimensionOutputName",
       "replaceMissingValueWith": "missing_value",
       "retainMissingValue": false,
       "lookup": {
         "type": "map",
         "map": {
           "Algeria": "EMEA",
           "Faroe Islands": "EMEA",
           "Luxembourg": "EMEA",
           ...

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Mime
View raw message