You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2022/06/23 11:28:00 UTC

[jira] [Resolved] (AVRO-3542) Scale assignment optimization

     [ https://issues.apache.org/jira/browse/AVRO-3542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Tzvetanov Grigorov resolved AVRO-3542.
---------------------------------------------
    Fix Version/s: 1.11.1
         Assignee: Igor Izvekov
       Resolution: Fixed

> Scale assignment optimization
> -----------------------------
>
>                 Key: AVRO-3542
>                 URL: https://issues.apache.org/jira/browse/AVRO-3542
>             Project: Apache Avro
>          Issue Type: Improvement
>    Affects Versions: 1.11.0
>            Reporter: Igor Izvekov
>            Assignee: Igor Izvekov
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.11.1, 1.12.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Changed string in the function: make_avsc_object (from the file "schema.py"):
> *scale = 0 if json_data.get("scale") is None else json_data.get("scale") -> scale = json_data.get("scale", 0)*
>  
> By Python documentation:
> get(self, key, default=None, /)
>     Return the value for key if key is in the dictionary, else default.
>  
> It is more effective and readable than previous version.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)