grafadruid / go-druid

A Golang client for Druid
https://join.slack.com/t/grafadruid/shared_invite/zt-1qy0skzy8-axnZuyzaWRm9t8f0r9dUWQ
Apache License 2.0
39 stars 32 forks source link

limitSpec: generates wrong fields #52

Closed jy4096 closed 3 years ago

jy4096 commented 3 years ago

go-druid generates limitSpec

"limitSpec": {
    "Typ": "default",
    "columns": [
      {
        "string": "d1",
        "Direction": "descending",
        "dimensionComparator": "numeric"
      }
    ],
    "limit": 3
  }

Where Typ => type string => dimension Direction => direction and dimensionComparator should be dimensionOrder https://druid.apache.org/docs/latest/querying/limitspec.html#defaultlimitspec https://druid.apache.org/docs/latest/querying/limitspec.html#orderbycolumnspec

jy4096 commented 3 years ago

https://github.com/grafadruid/go-druid/pull/53