yabinmeng opened a new issue, #20724: URL: https://github.com/apache/pulsar/issues/20724
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Motivation # Description When I try to configure a Pulsar Python function with `retainKeyOrdering` configuration, it returns an error message of "Retain Key Orderering not yet supported in python". Checking the following code ([link](https://github.com/apache/pulsar/blob/ac33311b7dfccdc88d560bbfd33c5cd968881717/pulsar-functions/instance/src/main/python/python_instance.py#L1[…]149](https://github.com/apache/pulsar/blob/ac33311b7dfccdc88d560bbfd33c5cd968881717/pulsar-functions/instance/src/main/python/python_instance.py#L142C8-L149))), it looks like `Key_Shared` subscription type is not supported in Pulsar Python function yet. Allowing the user to config subscription types (including `Key_Shared`) for a Pulsar Python function would be beneficial. ### Solution _No response_ ### Alternatives _No response_ ### Anything else? _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org