jihoonson opened a new issue #9144: Missing "spec" in the batch ingestion spec 
created by the web console
URL: https://github.com/apache/druid/issues/9144
 
 
   ### Affected Version
   
   0.17.0 branch
   
   ### Description
   
   The below is an ingestion spec created by the web console. `dataSchema`, 
`ioConfig`, and `tuningConfig` should be in `spec` which is missing. But if you 
submit this ingestion spec, the `spec` is properly inserted and the task 
succeeds.
   
   ```json
   {
     "type": "index_parallel",
     "ioConfig": {
       "type": "index_parallel",
       "inputSource": {
         "type": "http",
         "uris": [
           "https://static.imply.io/data/wikipedia.json.gz";
         ]
       },
       "inputFormat": {
         "type": "json"
       }
     },
     "tuningConfig": {
       "type": "index_parallel",
       "partitionsSpec": {
         "type": "dynamic"
       }
     },
     "dataSchema": {
       "dataSource": "wikipedia",
       "granularitySpec": {
         "type": "uniform",
         "segmentGranularity": "DAY",
         "queryGranularity": "HOUR",
         "rollup": true
       },
       "timestampSpec": {
         "column": "timestamp",
         "format": "iso"
       },
       "dimensionsSpec": {
         "dimensions": [
           "channel",
           "cityName",
           "comment",
           "countryIsoCode",
           "countryName",
           "diffUrl",
           "flags",
           "isAnonymous",
           "isMinor",
           "isNew",
           "isRobot",
           "isUnpatrolled",
           "namespace",
           "page",
           "regionIsoCode",
           "regionName",
           "user"
         ]
       },
       "metricsSpec": [
         {
           "name": "count",
           "type": "count"
         },
         {
           "name": "sum_added",
           "type": "longSum",
           "fieldName": "added"
         },
         {
           "name": "sum_commentLength",
           "type": "longSum",
           "fieldName": "commentLength"
         },
         {
           "name": "sum_deleted",
           "type": "longSum",
           "fieldName": "deleted"
         },
         {
           "name": "sum_delta",
           "type": "longSum",
           "fieldName": "delta"
         },
         {
           "name": "sum_deltaBucket",
           "type": "longSum",
           "fieldName": "deltaBucket"
         }
       ]
     }
   }
   ```

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

Reply via email to