Azure / azure-functions-python-library

Azure Functions Python SDK
MIT License
151 stars 63 forks source link

BUG: Cosmos DB Document should not be filtering _ts #120

Closed ealsur closed 2 years ago

ealsur commented 2 years ago

The C# Function Extension for Cosmos DB returns documents that include some system properties, these are important for some use cases.

There is code that is filtering those system properties: https://github.com/Azure/azure-functions-python-library/blob/cc1099ee996cc78125d61fb10d1879329cbe71cd/azure/functions/_cosmosdb.py#L10-L29

Ideally that should not happen, users can depend on reading properties like _ts or _etag, or _lsn.