{
  "data": {
    "data": {
      "fields": {
        "billingCountry": {
          "aggregatable": false,
          "fieldName": "billingCountry",
          "filterType": "text",
          "filterable": true,
          "measure": false,
          "meta": "属性 | 文本",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "账单国家"
            }
          },
          "name": "账单国家",
          "sourceColumn": "BillingCountry",
          "type": "STRING"
        },
        "customerId": {
          "aggregatable": false,
          "fieldName": "customerId",
          "filterType": "number",
          "filterable": true,
          "measure": false,
          "meta": "属性 | 文本",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "客户 ID"
            }
          },
          "name": "客户 ID",
          "sourceColumn": "CustomerId",
          "type": "INTEGER"
        },
        "customer_support$hierarchy$ReportsTo": {
          "aggregatable": false,
          "fieldName": "customer_support$hierarchy$ReportsTo",
          "filterType": "number",
          "filterable": true,
          "measure": false,
          "meta": "属性 | 文本",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "上级员工 ID"
            }
          },
          "name": "上级员工 ID",
          "sourceColumn": "ReportsTo",
          "type": "INTEGER"
        },
        "customer_support$hierarchy$Title": {
          "aggregatable": false,
          "fieldName": "customer_support$hierarchy$Title",
          "filterType": "text",
          "filterable": true,
          "measure": false,
          "meta": "属性 | 文本",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "职位"
            }
          },
          "name": "职位",
          "sourceColumn": "Title",
          "type": "STRING"
        },
        "customer_support$parentId": {
          "aggregatable": false,
          "fieldName": "customer_support$parentId",
          "filterType": "number",
          "filterable": true,
          "measure": false,
          "meta": "属性 | 文本",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "上级员工 ID"
            }
          },
          "name": "上级员工 ID",
          "sourceColumn": "ReportsTo",
          "type": "INTEGER"
        },
        "customer_support$title": {
          "aggregatable": false,
          "fieldName": "customer_support$title",
          "filterType": "text",
          "filterable": true,
          "measure": false,
          "meta": "属性 | 文本",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "职位"
            }
          },
          "name": "职位",
          "sourceColumn": "Title",
          "type": "STRING"
        },
        "invoiceAmount": {
          "aggregatable": true,
          "aggregation": "SUM",
          "fieldName": "invoiceAmount",
          "filterType": "number",
          "filterable": true,
          "measure": true,
          "meta": "度量 | 数值 | 默认聚合:SUM",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "账单金额 (聚合方式: SUM)"
            }
          },
          "name": "账单金额",
          "sourceColumn": "Total",
          "type": "MONEY"
        },
        "invoiceCount": {
          "aggregatable": true,
          "aggregation": "COUNT",
          "fieldName": "invoiceCount",
          "filterType": "number",
          "filterable": true,
          "measure": true,
          "meta": "度量 | 数值 | 默认聚合:COUNT",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "账单数 (聚合方式: COUNT)"
            }
          },
          "name": "账单数",
          "sourceColumn": "InvoiceId",
          "type": "INTEGER"
        },
        "invoiceDate": {
          "aggregatable": false,
          "fieldName": "invoiceDate",
          "filterType": "date",
          "filterable": true,
          "measure": false,
          "meta": "属性 | 日期时间",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "账单日期",
              "timeRole": "business_date"
            }
          },
          "name": "账单日期",
          "sourceColumn": "InvoiceDate",
          "timeRole": "business_date",
          "type": "DATETIME"
        },
        "invoiceId": {
          "aggregatable": false,
          "fieldName": "invoiceId",
          "filterType": "number",
          "filterable": true,
          "measure": false,
          "meta": "属性 | 文本",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "账单 ID"
            }
          },
          "name": "账单 ID",
          "sourceColumn": "InvoiceId",
          "type": "INTEGER"
        },
        "support$caption": {
          "aggregatable": false,
          "fieldName": "support$caption",
          "filterType": "dimension",
          "filterable": true,
          "measure": false,
          "meta": "维度名称 | 文本 | 当前客户支持人员主键",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "customer_support$caption | 当前客户支持人员的显示名称 | 当前客户支持人员主键",
              "usage": "用于展示、模糊查询"
            }
          },
          "name": "当前客户支持人员(名称)",
          "type": "TEXT"
        },
        "support$id": {
          "aggregatable": false,
          "fieldName": "support$id",
          "filterType": "dimension",
          "filterable": true,
          "hierarchical": true,
          "hierarchyOps": [
            "selfAndDescendantsOf",
            "descendantsOf",
            "childrenOf",
            "selfAndAncestorsOf",
            "ancestorsOf"
          ],
          "measure": false,
          "meta": "维度ID | 数值/文本 | 层级维度(selfAndDescendantsOf/selfAndAncestorsOf)",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "customer_support$id | 当前客户支持人员的ID/值",
              "usage": "用于精确查询、层级查询（如查某节点及其所有子节点）、作为外键关联、排序"
            }
          },
          "name": "当前客户支持人员(ID)",
          "sourceColumn": "SupportRepId",
          "type": "TEXT"
        },
        "yearMonth": {
          "aggregatable": false,
          "fieldName": "yearMonth",
          "filterType": "text",
          "filterable": true,
          "measure": false,
          "meta": "属性 | 文本",
          "models": {
            "ChinookSupportPivotQueryModel": {
              "description": "YYYY-MM，按账单日期取自然月，保留年份。"
            }
          },
          "name": "账单年月",
          "sourceColumn": "InvoiceDate",
          "type": "STRING"
        }
      },
      "modelSource": {
        "bundleName": "chinook-multidim-teaching",
        "known": true,
        "namespace": "chinook-multidim",
        "resourceIdentity": "练习目录\\lab\\multidim\\models\\query\\ChinookSupportPivotQueryModel.qm"
      },
      "models": {
        "ChinookSupportPivotQueryModel": {
          "factTable": "Invoice",
          "name": "支持归属账单交叉分析",
          "purpose": "数据查询和分析",
          "scenarios": [
            "数据查询",
            "统计分析",
            "报表生成"
          ]
        }
      },
      "physicalTables": [
        {
          "role": "fact",
          "table": "Invoice"
        }
      ],
      "prompt": "## 使用说明 (V3版本)\n- 格式约定：字段类型 | 数据类型 | 格式说明\n",
      "version": "v3"
    },
    "format": "json"
  },
  "diagnostics": {
    "attributes": {},
    "warnings": []
  },
  "engine": "java",
  "runtimeApiVersion": "foggy-runtime-api/v1",
  "success": true
}
