compassql icon indicating copy to clipboard operation
compassql copied to clipboard

Duplication of enumerated specs

Open yhoonkim opened this issue 8 years ago • 0 comments

When I ran this query with the transformed dataset below, it made 24 specQueryModel but 12 of them are duplicated.

Data

// data is loaded from '../datasets/cars.json'
data = data.map(d => {return {"Origin": d.Origin};});

Query

{
  "spec": {
    "mark": "point",
    "encodings": [
      {
        "channel": "?",
        "field": "Origin",
        "type": "nominal",
        "sort": { "field":"?", "op":"mean", "order":"?"}
      },{
        "channel": "?",
        "field": "Origin",
        "type": "nominal",
        "sort": { "field":"?", "op":"mean", "order":"?"}
      },{
        "channel": "y",
        "field": "*",
        "type": "quantitative",
        "aggregate": "count"
      }
    ]
  },
  "config": {
    "autoAddCount": true,
    "overlay": {
      "line": false
    }
  }
}

yhoonkim avatar Mar 09 '17 22:03 yhoonkim