{
  "data": {
    "basis": "RECOMPILED",
    "compilationTrace": {
      "events": [
        {
          "confidence": "EXACT",
          "decision": "NORMALIZED",
          "details": {
            "requestedFieldCount": 2
          },
          "event": "SEMANTIC_DSL_NORMALIZED",
          "observedAt": "2026-10-21T02:01:01.705925400Z",
          "reasonCode": "DSL_NORMALIZED",
          "sequence": 1,
          "stage": "NORMALIZATION",
          "status": "EVALUATED"
        },
        {
          "confidence": "EXACT",
          "decision": "RAW",
          "details": {},
          "event": "PRE_AGGREGATION_ROUTING",
          "observedAt": "2026-10-21T02:01:01.706443800Z",
          "reasonCode": "PREAGG_NOT_CONFIGURED",
          "sequence": 2,
          "stage": "MATERIALIZATION",
          "status": "EVALUATED"
        },
        {
          "confidence": "OBSERVED",
          "decision": "RAW",
          "details": {
            "parameterCount": 2,
            "preAggApplied": false,
            "sourceOfTruth": "QueryExecutionContext.sql",
            "sqlChanged": false
          },
          "event": "FINAL_QUERY_EXECUTION_CONTEXT_CAPTURED",
          "observedAt": "2026-10-21T02:01:01.706443800Z",
          "reasonCode": "PREAGG_NOT_CONFIGURED",
          "sequence": 3,
          "stage": "SQL",
          "status": "EVALUATED"
        }
      ],
      "fieldResolution": [
        {
          "confidence": "EXACT",
          "requested": "artist$id",
          "resolved": "artist$id",
          "tableField": "artist$id"
        },
        {
          "confidence": "EXACT",
          "requested": "artist$caption",
          "resolved": "artist$caption",
          "tableField": "artist$caption"
        }
      ],
      "normalizedConditions": [
        {
          "confidence": "EXACT",
          "field": "invoice$invoiceDate",
          "operator": "[)",
          "origin": "USER_SLICE",
          "path": "slice[0]",
          "redactedValue": "***",
          "valueType": "LIST<String>"
        }
      ],
      "normalizedDsl": {
        "autoFixDimCaption": false,
        "autoGroupBy": true,
        "columns": [
          "artist$id",
          "artist$caption"
        ],
        "distinct": true,
        "optimizeAggSqlEnabled": true,
        "orderBy": [
          {
            "dir": "asc",
            "field": "artist$id",
            "nullFirst": false,
            "nullLast": false
          }
        ],
        "postAggregateCalculations": [],
        "queryModel": "ChinookInvoiceLineQueryModel",
        "returnTotal": true,
        "slice": [
          {
            "$and": [],
            "$or": [],
            "field": "invoice$invoiceDate",
            "maxDepth": 0,
            "op": "[)",
            "value": "***"
          }
        ],
        "strictColumns": true,
        "withSubtotals": false
      },
      "originalDsl": {
        "captionMatchMode": "EXACT",
        "columns": [
          "artist$id",
          "artist$caption"
        ],
        "distinct": true,
        "limit": 5,
        "mismatchHandleStrategy": "ABORT",
        "orderBy": [
          {
            "dir": "asc",
            "field": "artist$id",
            "nullFirst": false,
            "nullLast": false
          }
        ],
        "pivotMode": false,
        "returnTotal": true,
        "slice": [
          {
            "field": "invoice$invoiceDate",
            "op": "[)",
            "value": "***"
          }
        ],
        "start": 115,
        "withSubtotals": false
      },
      "stagePlan": {
        "dialect": "sqlite",
        "fallbacks": [],
        "preAggOptimizationPolicy": "optimizer-allowed",
        "renderStrategy": "single",
        "returnTotalStrategy": "final-stage-count",
        "stages": [
          {
            "filterAliases": [
              "invoice$invoiceDate"
            ],
            "id": "row",
            "inputAliases": [],
            "orderAliases": [],
            "outputAliases": [
              "artist$id",
              "artist$caption"
            ],
            "parameterCount": 2,
            "requiresSqlBoundary": false,
            "sqlAlias": "base",
            "type": "ROW_STAGE"
          },
          {
            "filterAliases": [],
            "id": "final",
            "inputAliases": [
              "artist$id",
              "artist$caption"
            ],
            "orderAliases": [
              "artist$id"
            ],
            "outputAliases": [
              "artist$id",
              "artist$caption"
            ],
            "parameterCount": 0,
            "requiresSqlBoundary": false,
            "sqlAlias": "final",
            "type": "FINAL_STAGE"
          }
        ],
        "unsupported": [],
        "version": "v1"
      }
    },
    "definitionTrace": {
      "fields": [
        {
          "dataType": "INTEGER",
          "fieldType": "property",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.invoiceLineId",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "ChinookInvoiceLineModel.invoiceLineId"
            },
            {
              "column": "InvoiceLineId",
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineModel.invoiceLineId",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "InvoiceLine",
              "to": "InvoiceLine.InvoiceLineId"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.invoiceLineId",
          "references": [],
          "tableField": "invoiceLineId",
          "tableModel": "ChinookInvoiceLineModel"
        },
        {
          "dataType": "INTEGER",
          "fieldType": "property",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.invoiceId",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "ChinookInvoiceLineModel.invoiceId"
            },
            {
              "column": "InvoiceId",
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineModel.invoiceId",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "InvoiceLine",
              "to": "InvoiceLine.InvoiceId"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.invoiceId",
          "references": [],
          "tableField": "invoiceId",
          "tableModel": "ChinookInvoiceLineModel"
        },
        {
          "dataType": "INTEGER",
          "fieldType": "property",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.trackId",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "ChinookInvoiceLineModel.trackId"
            },
            {
              "column": "TrackId",
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineModel.trackId",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "InvoiceLine",
              "to": "InvoiceLine.TrackId"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.trackId",
          "references": [],
          "tableField": "trackId",
          "tableModel": "ChinookInvoiceLineModel"
        },
        {
          "dataType": "MONEY",
          "fieldType": "property",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.unitPrice",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "ChinookInvoiceLineModel.unitPrice"
            },
            {
              "column": "UnitPrice",
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineModel.unitPrice",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "InvoiceLine",
              "to": "InvoiceLine.UnitPrice"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.unitPrice",
          "references": [],
          "tableField": "unitPrice",
          "tableModel": "ChinookInvoiceLineModel"
        },
        {
          "dataType": "DATETIME",
          "fieldType": "property",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.invoice$invoiceDate",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "unresolved-tm.invoice$id"
            },
            {
              "column": "InvoiceDate",
              "confidence": "EXACT",
              "from": "unresolved-tm.invoice$id",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "Invoice",
              "to": "Invoice.InvoiceDate"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.invoice$invoiceDate",
          "references": [],
          "tableField": "invoice$id"
        },
        {
          "dataType": "STRING",
          "fieldType": "property",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.invoice$billingCountry",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "unresolved-tm.invoice$id"
            },
            {
              "column": "BillingCountry",
              "confidence": "EXACT",
              "from": "unresolved-tm.invoice$id",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "Invoice",
              "to": "Invoice.BillingCountry"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.invoice$billingCountry",
          "references": [],
          "tableField": "invoice$id"
        },
        {
          "dataType": "INTEGER",
          "fieldType": "property",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.invoice$customerId",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "unresolved-tm.invoice$id"
            },
            {
              "column": "CustomerId",
              "confidence": "EXACT",
              "from": "unresolved-tm.invoice$id",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "Invoice",
              "to": "Invoice.CustomerId"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.invoice$customerId",
          "references": [],
          "tableField": "invoice$id"
        },
        {
          "dataType": "STRING",
          "fieldType": "property",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.invoice_customer$fullName",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "unresolved-tm.customer$id"
            },
            {
              "column": "FirstName",
              "confidence": "EXACT",
              "from": "unresolved-tm.customer$id",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "Customer",
              "to": "Customer.FirstName"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.invoice_customer$fullName",
          "references": [],
          "tableField": "customer$id"
        },
        {
          "dataType": "STRING",
          "fieldType": "property",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.track$title",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "unresolved-tm.track$id"
            },
            {
              "column": "Name",
              "confidence": "EXACT",
              "from": "unresolved-tm.track$id",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "Track",
              "to": "Track.Name"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.track$title",
          "references": [],
          "tableField": "track$id"
        },
        {
          "dataType": "INTEGER",
          "fieldType": "property",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.track_genre$genreId",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "unresolved-tm.genre$id"
            },
            {
              "column": "GenreId",
              "confidence": "EXACT",
              "from": "unresolved-tm.genre$id",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "Genre",
              "to": "Genre.GenreId"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.track_genre$genreId",
          "references": [],
          "tableField": "genre$id"
        },
        {
          "dataType": "STRING",
          "fieldType": "property",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.track_genre$genreName",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "unresolved-tm.genre$id"
            },
            {
              "column": "Name",
              "confidence": "EXACT",
              "from": "unresolved-tm.genre$id",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "Genre",
              "to": "Genre.Name"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.track_genre$genreName",
          "references": [],
          "tableField": "genre$id"
        },
        {
          "dataType": "INTEGER",
          "fieldType": "dimension",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.track.album$id",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "unresolved-tm.album$id"
            },
            {
              "column": "AlbumId",
              "confidence": "EXACT",
              "from": "unresolved-tm.album$id",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "Track",
              "to": "Track.AlbumId"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.track.album$id",
          "references": [],
          "tableField": "album$id"
        },
        {
          "dataType": "TEXT",
          "fieldType": "dimension",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.track.album$caption",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "unresolved-tm.album$caption"
            },
            {
              "column": "Title",
              "confidence": "EXACT",
              "from": "unresolved-tm.album$caption",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "Album",
              "to": "Album.Title"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.track.album$caption",
          "references": [],
          "tableField": "album$caption"
        },
        {
          "dataType": "INTEGER",
          "fieldType": "dimension",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.track.album.artist$id",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "unresolved-tm.artist$id"
            },
            {
              "column": "ArtistId",
              "confidence": "EXACT",
              "from": "unresolved-tm.artist$id",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "Album",
              "to": "Album.ArtistId"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.track.album.artist$id",
          "references": [],
          "tableField": "artist$id"
        },
        {
          "dataType": "TEXT",
          "fieldType": "dimension",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.track.album.artist$caption",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "unresolved-tm.artist$caption"
            },
            {
              "column": "Name",
              "confidence": "EXACT",
              "from": "unresolved-tm.artist$caption",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "Artist",
              "to": "Artist.Name"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.track.album.artist$caption",
          "references": [],
          "tableField": "artist$caption"
        },
        {
          "dataType": "MONEY",
          "fieldType": "measure",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.lineAmount",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "ChinookInvoiceLineModel.lineAmount"
            },
            {
              "confidence": "OPAQUE",
              "from": "ChinookInvoiceLineModel.lineAmount",
              "reasonCode": "FORMULA_BUILDER_OPAQUE",
              "to": "<opaque-formula-builder>"
            },
            {
              "confidence": "OPAQUE",
              "from": "<opaque-formula-builder>",
              "reasonCode": "FORMULA_BUILDER_SOURCE_OPAQUE",
              "to": "<opaque-formula-source>"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.lineAmount",
          "references": [],
          "tableField": "lineAmount",
          "tableModel": "ChinookInvoiceLineModel"
        },
        {
          "aggregationFormula": "SUM(Quantity)",
          "dataType": "INTEGER",
          "fieldType": "measure",
          "lineage": [
            {
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineQueryModel.salesQuantity",
              "reasonCode": "QM_TO_TM_MODEL_STRUCTURE",
              "to": "ChinookInvoiceLineModel.salesQuantity"
            },
            {
              "confidence": "EXACT",
              "expression": "SUM(Quantity)",
              "from": "ChinookInvoiceLineModel.salesQuantity",
              "reasonCode": "AGGREGATION_MODEL_STRUCTURE",
              "to": "SUM(Quantity)"
            },
            {
              "column": "Quantity",
              "confidence": "EXACT",
              "from": "ChinookInvoiceLineModel.salesQuantity",
              "reasonCode": "TABLE_COLUMN_MODEL_STRUCTURE",
              "relation": "InvoiceLine",
              "to": "InvoiceLine.Quantity"
            }
          ],
          "queryField": "ChinookInvoiceLineQueryModel.salesQuantity",
          "references": [],
          "tableField": "salesQuantity",
          "tableModel": "ChinookInvoiceLineModel"
        }
      ],
      "joins": [
        {
          "confidence": "EXACT",
          "foreignKey": "InvoiceId",
          "fromModel": "ChinookInvoiceLineModel",
          "joinType": "LEFT",
          "reasonCode": "JOIN_FOREIGN_KEY_MODEL_STRUCTURE"
        },
        {
          "confidence": "EXACT",
          "foreignKey": "TrackId",
          "fromModel": "ChinookInvoiceLineModel",
          "joinType": "LEFT",
          "reasonCode": "JOIN_FOREIGN_KEY_MODEL_STRUCTURE"
        },
        {
          "confidence": "EXACT",
          "foreignKey": "CustomerId",
          "joinType": "LEFT",
          "reasonCode": "JOIN_FOREIGN_KEY_MODEL_STRUCTURE"
        },
        {
          "confidence": "EXACT",
          "foreignKey": "GenreId",
          "joinType": "LEFT",
          "reasonCode": "JOIN_FOREIGN_KEY_MODEL_STRUCTURE"
        },
        {
          "confidence": "EXACT",
          "foreignKey": "AlbumId",
          "joinType": "LEFT",
          "reasonCode": "JOIN_FOREIGN_KEY_MODEL_STRUCTURE"
        },
        {
          "confidence": "EXACT",
          "foreignKey": "ArtistId",
          "joinType": "LEFT",
          "reasonCode": "JOIN_FOREIGN_KEY_MODEL_STRUCTURE"
        }
      ],
      "model": {
        "dependencies": [
          {
            "kind": "TABLE",
            "name": "ChinookInvoiceLineModel"
          }
        ],
        "kind": "QUERY",
        "name": "ChinookInvoiceLineQueryModel",
        "namespace": "chinook",
        "revision": "source:65bd5c43-880b-43d9-8b5a-a6b64cb24081:g0:n4",
        "source": "chinook-0129-control:练习目录\\lab\\releases\\launcher-0.1.29\\control-models\\query\\ChinookInvoiceLineQueryModel.qm"
      },
      "queryModel": "ChinookInvoiceLineQueryModel"
    },
    "executionTrace": {
      "jdbc": "NOT_EVALUATED",
      "l1Cache": "NOT_EVALUATED",
      "l2Cache": "NOT_EVALUATED",
      "route": "NOT_EVALUATED"
    },
    "limitations": [
      {
        "code": "FORMULA_BUILDER_OPAQUE",
        "confidence": "OPAQUE",
        "message": "An arbitrary formulaDef.builder participated; its source code and undeclared physical lineage were not inspected or exposed."
      },
      {
        "code": "RECOMPILED_NOT_EXECUTED_TRACE",
        "confidence": "EXACT",
        "message": "This evidence was produced by a fresh governed compilation. It is not the historical trace of an earlier execution."
      }
    ],
    "materializationTrace": {
      "decision": "SOURCE_QUERY_RETAINED",
      "definitions": [],
      "reasonCode": "PREAGG_NOT_CONFIGURED",
      "route": "RAW",
      "status": "EVALUATED"
    },
    "schemaVersion": "foggy-semantic-explain/v1",
    "securityTrace": {
      "affectedFields": [],
      "affectsFieldVisibility": false,
      "affectsJoin": false,
      "affectsPreAggregation": false,
      "conditions": [
        {
          "confidence": "EXACT",
          "field": "invoice$invoiceDate",
          "operator": "[)",
          "origin": "USER_SLICE",
          "path": "slice[0]",
          "redactedValue": "***",
          "valueType": "LIST<String>"
        }
      ],
      "effect": "ALLOW",
      "policyId": "PUBLIC",
      "policyVersion": "PUBLIC",
      "publicDecision": true,
      "status": "EVALUATED"
    },
    "sqlTrace": {
      "confidence": "OBSERVED",
      "exposed": true,
      "finalPhysicalSql": "select\t distinct \td5.ArtistId \"artist$id\",\td6.Name \"artist$caption\"\tfrom InvoiceLine t1\t left join Track d3  on t1.TrackId=d3.TrackId left join Album d5  on d3.AlbumId=d5.AlbumId left join Artist d6  on d5.ArtistId=d6.ArtistId left join Invoice d1  on t1.InvoiceId=d1.InvoiceId where  1=1  and \td1.InvoiceDate >=?  and \td1.InvoiceDate <?  order by d5.ArtistId asc",
      "logicalSql": "select\t distinct \td5.ArtistId \"artist$id\",\td6.Name \"artist$caption\"\tfrom InvoiceLine t1\t left join Track d3  on t1.TrackId=d3.TrackId left join Album d5  on d3.AlbumId=d5.AlbumId left join Artist d6  on d5.ArtistId=d6.ArtistId left join Invoice d1  on t1.InvoiceId=d1.InvoiceId where  1=1  and \td1.InvoiceDate >=?  and \td1.InvoiceDate <?  order by d5.ArtistId asc",
      "parameters": [
        {
          "confidence": "OBSERVED",
          "index": 1,
          "origin": "USER_SLICE",
          "redactedValue": "***",
          "valueType": "String"
        },
        {
          "confidence": "OBSERVED",
          "index": 2,
          "origin": "USER_SLICE",
          "redactedValue": "***",
          "valueType": "String"
        }
      ],
      "reasonCode": "SQL_CAPTURED_FROM_QUERY_EXECUTION_CONTEXT",
      "sourceOfTruth": "QueryExecutionContext.sql"
    }
  },
  "diagnostics": {
    "attributes": {},
    "warnings": []
  },
  "engine": "java",
  "runtimeApiVersion": "foggy-runtime-api/v1",
  "success": true
}
