[
https://issues.apache.org/jira/browse/BEAM-7372?focusedWorklogId=571886&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-571886
]
ASF GitHub Bot logged work on BEAM-7372:
----------------------------------------
Author: ASF GitHub Bot
Created on: 25/Mar/21 13:38
Start Date: 25/Mar/21 13:38
Worklog Time Spent: 10m
Work Description: lazylynx commented on a change in pull request #14292:
URL: https://github.com/apache/beam/pull/14292#discussion_r601492980
##########
File path: sdks/python/apache_beam/io/gcp/bigquery_avro_tools_test.py
##########
@@ -90,9 +86,7 @@ def test_convert_bigquery_schema_to_avro_schema(self):
# Test that schema can be parsed correctly by avro
parsed_schema = Parse(json.dumps(avro_schema))
- # Avro RecordSchema provides field_map in py3 and fields_dict in py2
- field_map = getattr(parsed_schema, "field_map", None) or \
- getattr(parsed_schema, "fields_dict", None)
+ field_map = getattr(parsed_schema, "field_map", None)
Review comment:
Updated
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 571886)
Time Spent: 32h 10m (was: 32h)
> Clean up Python 2 codepaths once Beam no longer supports Python 2.
> ------------------------------------------------------------------
>
> Key: BEAM-7372
> URL: https://issues.apache.org/jira/browse/BEAM-7372
> Project: Beam
> Issue Type: Sub-task
> Components: sdk-py-core
> Reporter: Valentyn Tymofieiev
> Priority: P3
> Labels: P3
> Time Spent: 32h 10m
> Remaining Estimate: 0h
>
> There are several places in Beam where we branch based on Python version.
> Once Python 2 is no longer supported, we can remove Py2 parts of the branch.
> To find places to clean up, we can search for "Python 2", "Python 3", "Py2",
> "sys.version_info", BEAM-8371, etc.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)