{
  "data": {
    "debug": {
      "durationMs": 3,
      "extra": {
        "aggSql": "select null \"albumArtistId\",\n       null \"artistLabel\",\n       null \"lineCount\",\n       null \"totalAmount\",\n       count(*) \"total\"\nfrom (select\td3.ArtistId \"albumArtistId\",\td4.Name \"artistLabel\",\tCOUNT(t1.InvoiceLineId) \"lineCount\",\tSUM(t1.UnitPrice * t1.Quantity) \"totalAmount\"\tfrom InvoiceLine t1\t left join Track d2  on t1.TrackId=d2.TrackId left join Album d3  on d2.AlbumId=d3.AlbumId left join Artist d4  on d3.ArtistId=d4.ArtistId left join Invoice d1  on t1.InvoiceId=d1.InvoiceId where  1=1  and \td1.InvoiceDate >=?  and \td1.InvoiceDate <?  and \td3.ArtistId =? \tgroup by d3.ArtistId,\td4.Name) tx",
        "params": [
          "2012-01-01 00:00:00",
          "2013-01-01 00:00:00",
          90
        ],
        "sql": "select\td3.ArtistId \"albumArtistId\",\td4.Name \"artistLabel\",\tCOUNT(t1.InvoiceLineId) \"lineCount\",\tSUM(t1.UnitPrice * t1.Quantity) \"totalAmount\"\tfrom InvoiceLine t1\t left join Track d2  on t1.TrackId=d2.TrackId left join Album d3  on d2.AlbumId=d3.AlbumId left join Artist d4  on d3.ArtistId=d4.ArtistId left join Invoice d1  on t1.InvoiceId=d1.InvoiceId where  1=1  and \td1.InvoiceDate >=?  and \td1.InvoiceDate <?  and \td3.ArtistId =? \tgroup by d3.ArtistId,\td4.Name order by d3.ArtistId asc"
      },
      "normalized": {
        "groupBy": [
          {
            "field": "albumArtistId"
          },
          {
            "field": "albumArtistName"
          },
          {
            "agg": "COUNT",
            "field": "lineCount"
          },
          {
            "agg": "SUM",
            "field": "totalAmount"
          }
        ],
        "orderBy": [
          {
            "dir": "asc",
            "field": "albumArtistId",
            "nullFirst": false,
            "nullLast": false
          }
        ],
        "slice": [
          {
            "field": "invoice$invoiceDate",
            "op": "[)",
            "value": [
              "2012-01-01",
              "2013-01-01"
            ]
          },
          {
            "field": "albumArtistId",
            "op": "=",
            "value": 90
          }
        ]
      }
    },
    "hasNext": false,
    "items": [
      {
        "albumArtistId": 90,
        "artistLabel": "Iron Maiden",
        "lineCount": 34,
        "totalAmount": 33.66
      }
    ],
    "pagination": {
      "hasMore": false,
      "limit": 5,
      "rangeDescription": "显示第 1-1 条",
      "returned": 1,
      "start": 0
    },
    "schema": {
      "columns": [
        {
          "dataType": "INTEGER",
          "name": "albumArtistId",
          "title": "艺术家"
        },
        {
          "dataType": "TEXT",
          "name": "artistLabel",
          "queryName": "albumArtistName",
          "title": "艺术家"
        },
        {
          "name": "lineCount"
        },
        {
          "name": "totalAmount"
        }
      ],
      "summary": "按 艺术家、艺术家 分组，统计 lineCount、totalAmount，返回 1 条数据"
    },
    "total": 0
  },
  "diagnostics": {
    "attributes": {},
    "warnings": []
  },
  "engine": "java",
  "runtimeApiVersion": "foggy-runtime-api/v1",
  "success": true
}
