mrstonie1983 opened a new issue, #21539: URL: https://github.com/apache/pulsar/issues/21539
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Motivation as it is possible in the yaml to define multiple input topics it should be possible as well to reference the typeClassName on the sourceSpecs level and not only in the input section ``` "source": { "typeClassName": "schema-test.EasySchema", "inputSpecs": { "tenant/test-schema/schema.v1": { "serdeClassName": "schema-test.EasySchemaSerDe", "schemaType": "avro" }, "tenant/test-schema/schema.v2": { "serdeClassName": "schema-test.EasySchemaSerDe", "schemaType": "avro" } }, "subscriptionPosition": "EARLIEST" } ``` Else it isn't possible to define different class references for different topics (if the Class and SerDe is different) so in [get_schema()](https://github.com/apache/pulsar/blob/master/pulsar-functions/instance/src/main/python/python_instance.py#L195) it should have the possibility to reference consumer_conf.typeClassName so final spec would look like ``` "source": { "inputSpecs": { "tenant/test-schema/schema.v1": { "serdeClassName": "schema-test.EasySchemaSerDe", "schemaType": "avro", "typeClassName": "schema-test.EasySchema" }, "tenant/test-schema/schema.v2": { "serdeClassName": "schema-test.EasySchema2SerDe", "schemaType": "avro", "typeClassName": "schema-test.EasySchema2", } }, "subscriptionPosition": "EARLIEST" } ``` ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
