As i am working on getting the PR out for GraphQL ...
# getting-started
n
As i am working on getting the PR out for GraphQL MLModel Query.. I am facing an issue in the
MLModels
Client where the Snapshot aspects array is empty in here - https://github.com/linkedin/datahub/blob/master/gms/impl/src/main/java/com/linkedin/metadata/resources/ml/MLModels.java#L121 Any clues on where the issue might be?
b
and you've ingested ML model data into the system? You can see it in MySQL?
And if so, the primary key for the metadata your accessing is for certain correct
?
n
Yes, the data is ingested to MySQL thru the
metadata-ingestion
Also in the MLModel Client value
urn
is populated that i can see it thru debug and its also part of the GraphQL response.
Copy code
{
  "data": {
    "mlmodel": {
      "urn": "urn:li:mlModel:(urn:li:dataPlatform:science,scienceModel,PROD)",
      "type": "MLMODEL",
      "name": "scienceModel",
      "origin": "PROD",
      "description": "",
      "tags": [],
      "properties": null,
      "ownership": null,
      "status": null,
      "institutionalMemory": null,
      "mlModelProperties": null,
      "intendedUse": null,
      "mlModelFactorPrompts": null,
      "metrics": null,
      "trainingData": null,
      "evaluationData": null,
      "quantitativeAnalyses": null,
      "ethicalConsiderations": null,
      "caveatsAndRecommendations": null,
      "cost": null
    }
  }
}
b
Interesting... if you’re seeing it in graphql response, then where exactly is the issue?
n
As you can see no aspects data is retrieved… I don’t receive any aspects in the MLModelSnapshot…..
b
omg i see.. hmm. can you join office hours?
Key :
urn:li:mlModel:(urn:li:dataPlatform:science,scienceModel,PROD)
curl -H 'X-RestLi-Protocol-Version:2.0.0' -H 'X-RestLi-Method: get' '<http://localhost:8080/mlModels/($params:(),name:dataScienceModel,origin:TEST,platform:urn%3Ali%3AdataPlatform%3AdataScience)/snapshot/($params:(),aspectVersions:List((aspect:com.linkedin.common.Ownership,version:0)))>' | jq
Thanks a lot John for helping me out here….Have a great day!