shizhengchao commented on issue #7970: Consider adding support for a pre-transform filter for transform specs URL: https://github.com/apache/incubator-druid/issues/7970#issuecomment-506205490 > This creates a situation where I need to add a field I do not care about to the Data Source's dim i don't think so,because I had used it like this. i can give you my json task: ```json { "type": "kafka", "dataSchema": { "dataSource": "demo", "parser": { "type": "string", "parseSpec": { "format": "json", "timestampSpec": { "column": "timestamp", "format": "yyyy-MM-dd HH:mm:ss" }, "dimensionsSpec": { "dimensions": [ "user_id", "express_company_id" ] } } }, "metricsSpec": [ { "name": "count", "type": "count" }, { "name": "drop_count", "fieldName": "metric_count", "type": "longSum" }, { "name": "freight", "fieldName": "freight", "type": "longSum" } ], "granularitySpec": { "type": "uniform", "segmentGranularity": "month", "queryGranularity": "minute", "rollup": true }, "transformSpec": { "filter": { "type": "selector", "dimension": "send_status", "value": "101" } } }, "tuningConfig": { "type": "kafka", "intermediatePersistPeriod" : "PT10M" }, "ioConfig": { "topic": "SendForDruid", "consumerProperties": { "bootstrap.servers": "localhost:9092" }, "useEarliestOffset": true, "taskCount": 1, "replicas": 1, "taskDuration": "P1D" } } ``` in my `transformSpec`, i can use filter fields that are not in the dimensions list.
---------------------------------------------------------------- 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]
