{
  "data": {
    "debug": {
      "durationMs": 14,
      "extra": {
        "aggSql": "select null \"invoiceDate$yearMonth\",\n       null \"totalAmount\",\n       null \"billCount\",\n       count(*) \"total\"\nfrom (select\tstrftime('%Y-%m', t1.InvoiceDate) \"invoiceDate$yearMonth\",\tSUM(t1.Total) \"totalAmount\",\tCOUNT(t1.InvoiceId) \"billCount\"\tfrom Invoice t1\t where  1=1  and \tt1.InvoiceDate >=?  and \tt1.InvoiceDate <? \tgroup by strftime('%Y-%m', t1.InvoiceDate)) tx",
        "params": [
          "2012-01-01",
          "2013-01-01"
        ],
        "sql": "select\tstrftime('%Y-%m', t1.InvoiceDate) \"invoiceDate$yearMonth\",\tSUM(t1.Total) \"totalAmount\",\tCOUNT(t1.InvoiceId) \"billCount\"\tfrom Invoice t1\t where  1=1  and \tt1.InvoiceDate >=?  and \tt1.InvoiceDate <? \tgroup by strftime('%Y-%m', t1.InvoiceDate) order by strftime('%Y-%m', t1.InvoiceDate) asc"
      },
      "normalized": {
        "groupBy": [
          {
            "field": "invoiceDate$yearMonth"
          },
          {
            "agg": "SUM",
            "field": "totalAmount"
          },
          {
            "agg": "COUNT",
            "field": "billCount"
          }
        ],
        "orderBy": [
          {
            "dir": "asc",
            "field": "invoiceDate$yearMonth",
            "nullFirst": false,
            "nullLast": false
          }
        ],
        "slice": [
          {
            "field": "invoiceDate$id",
            "op": "[)",
            "value": [
              "2012-01-01",
              "2013-01-01"
            ]
          }
        ]
      }
    },
    "hasNext": false,
    "items": [
      {
        "billCount": 7,
        "invoiceDate$yearMonth": "2012-01",
        "totalAmount": 37.62
      },
      {
        "billCount": 7,
        "invoiceDate$yearMonth": "2012-02",
        "totalAmount": 37.62
      },
      {
        "billCount": 7,
        "invoiceDate$yearMonth": "2012-03",
        "totalAmount": 37.62
      },
      {
        "billCount": 7,
        "invoiceDate$yearMonth": "2012-04",
        "totalAmount": 37.62
      },
      {
        "billCount": 7,
        "invoiceDate$yearMonth": "2012-05",
        "totalAmount": 37.62
      },
      {
        "billCount": 7,
        "invoiceDate$yearMonth": "2012-06",
        "totalAmount": 37.62
      },
      {
        "billCount": 7,
        "invoiceDate$yearMonth": "2012-07",
        "totalAmount": 39.62
      },
      {
        "billCount": 7,
        "invoiceDate$yearMonth": "2012-08",
        "totalAmount": 47.62
      },
      {
        "billCount": 6,
        "invoiceDate$yearMonth": "2012-09",
        "totalAmount": 46.71
      },
      {
        "billCount": 7,
        "invoiceDate$yearMonth": "2012-10",
        "totalAmount": 42.62
      },
      {
        "billCount": 7,
        "invoiceDate$yearMonth": "2012-11",
        "totalAmount": 37.62
      },
      {
        "billCount": 7,
        "invoiceDate$yearMonth": "2012-12",
        "totalAmount": 37.62
      }
    ],
    "pagination": {
      "hasMore": false,
      "limit": 100,
      "rangeDescription": "显示第 1-12 条",
      "returned": 12,
      "start": 0
    },
    "schema": {
      "columns": [
        {
          "dataType": "STRING",
          "name": "invoiceDate$yearMonth",
          "title": "账单年月"
        },
        {
          "name": "totalAmount"
        },
        {
          "name": "billCount"
        }
      ],
      "summary": "按 账单年月 分组，统计 totalAmount、billCount，返回 12 条数据"
    },
    "total": 0
  },
  "diagnostics": {
    "attributes": {},
    "warnings": []
  },
  "engine": "java",
  "runtimeApiVersion": "foggy-runtime-api/v1",
  "success": true
}
