Skip to content

Missing "spec" in the batch ingestion spec created by the web console #9144

@jihoonson

Description

@jihoonson

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.

{
  "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"
      }
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions