You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/08/02 13:35:11 UTC

[GitHub] [pulsar] gaoran10 opened a new issue #11533: [Python Schema] Redefined record schema problem

gaoran10 opened a new issue #11533:
URL: https://github.com/apache/pulsar/issues/11533


   **Describe the bug**
   
   Currently, one record couldn't appear more than one time in a complex record, because the schema definition string redefined the same name object, the right way is that if one record has appeared then if another field uses it again, the schema definition string only shows the record name in the type parameter.
   
   For example
   
   ```
   class Obj1(Record):
       a = String()
       b = Double()
   
   # This is ok
   class Obj2(Record):
       a = String()
       nested = Obj1()
   
   # This is not work
   class Obj3(Record):
       a = String()
       nested1 = Obj1()
       nested2 = Obj1()
   
   # This is not work
   class Obj4(Record):
       a = String()
       nested1 = Obj1()
       nested2 = Array(Obj1())
   ```
   
   


-- 
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-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui closed issue #11533: [Python Schema] Redefined record schema problem

Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #11533:
URL: https://github.com/apache/pulsar/issues/11533


   


-- 
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-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org