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/09/29 10:07:15 UTC

[GitHub] [pulsar] hangc0276 edited a comment on pull request #12232: [Python] Do not sort schema fields by default

hangc0276 edited a comment on pull request #12232:
URL: https://github.com/apache/pulsar/pull/12232#issuecomment-930034245


   I found a case about the schema without sort field.
   If we define the class like:
   ```Python
   class T2(Record):
               b = Integer()
               a = Integer()
               d = String()
               c = Double()
   ```
   But the schema fields of T2 without sort is:
   ```
   [{'type': ['null', 'int'], 'name': 'a'}, {'type': ['null', 'double'], 'name': 'c'}, {'type': ['null', 'int'], 'name': 'b'}, {'type': ['null', 'string'], 'name': 'd'}]
   ```
   
   However we expected order is the field define order of the class (I am not sure), such as `b, a, d, c`, but the output order is `a, c, b, d`


-- 
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