Azure / azure-cosmosdb-spark

Apache Spark Connector for Azure Cosmos DB
MIT License
199 stars 119 forks source link

Unable to read edges from Cosmos DB #466

Open mihirrane-wb opened 2 years ago

mihirrane-wb commented 2 years ago

I used the code provided to write the data into Cosmos DB. I had written vertices with different labels into Cosmos DB cosmosDbVertices.write.format(cosmosDbFormat).mode("append").options(**cosmosDbConfig).save() cosmosDbEdges.write.format(cosmosDbFormat).mode("append").options(**cosmosDbConfig).save() I was successful in doing so using the Cosmos OLTP library. I can see the vertices and edges in Cosmos DB when I checked using the Azure Portal.The problem arises when I try to read - I can only see these columns id:string label:string element:struct id:string _value:string I am not getting columns _isEdge, _sink and _vertexId.