Apologies for the late reply, I produce the events...
# getting-started
a
Apologies for the late reply, I produce the events via official sdk, and I tried to intercepted the post request to/aspects?action=ingestProposal, here is the reponsebody:
Copy code
{
  "proposal": {
    "entityType": "mlModel",
    "entityUrn": "urn:li:mlModel:(urn:li:dataPlatform:Hive,default.Test-3f41db,CORP)",
    "changeType": "UPSERT",
    "aspectName": "mlModelProperties",
    "aspect": {
      "value": {
        "customProperties": {
          "display_name": "",
          "uri": "s3: //test"
        },
        "description": "",
        "date": 1675238456305,
        "hyperParams": [],
        "trainingMetrics": [],
        "tags": [],
        "trainingJobs": [
          "urn:li:dataJob:(urn:li:dataFlow:(local,442771326f794a2cb8fd8d0f1faa2da4,CORP),e5d72a97a36a4af282b101346b604356)"
        ],
        "downstreamJobs": [
          "urn:li:dataJob:(urn:li:dataFlow:(local,442771326f794a2cb8fd8d0f1faa2da4,CORP),178d070948eb4eb3ae6828dce3ee803a)"
        ]
      }
    }
  }
}
then I tried to query it via graphql
Copy code
{
  mlModel(urn: "urn:li:mlModel:(urn:li:dataPlatform:Hive,default.Test-3f41db,CORP)"){
    lineage(input:{direction:UPSTREAM}){
    	total,
      relationships{
        type,
        entity{
          urn
        }
      }
    }
  }
}
here is the result
Copy code
{
  "data": {
    "mlModel": {
      "lineage": {
        "total": 1,
        "relationships": [
          {
            "type": "TrainedBy",
            "entity": {
              "urn": "urn:li:dataJob:(urn:li:dataFlow:(local,442771326f794a2cb8fd8d0f1faa2da4,CORP),e5d72a97a36a4af282b101346b604356)"
            }
          }
        ]
      }
    }
  },
  "extensions": {}
}
but if I change the direction to DOWNSTREAM
Copy code
{
  mlModel(urn: "urn:li:mlModel:(urn:li:dataPlatform:Hive,default.Test-3f41db,CORP)"){
    lineage(input:{direction:DOWNSTREAM}){
    	total,
      relationships{
        type,
        entity{
          urn
        }
      }
    }
  }
}
it returns nothing😐
Copy code
{
  "data": {
    "mlModel": {
      "lineage": {
        "total": 0,
        "relationships": []
      }
    }
  },
  "extensions": {}
}
I'm not very good at English, so I'm sorry if I didn't express myself clearly