[
https://issues.apache.org/jira/browse/BEAM-9546?focusedWorklogId=471758&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-471758
]
ASF GitHub Bot logged work on BEAM-9546:
----------------------------------------
Author: ASF GitHub Bot
Created on: 18/Aug/20 00:45
Start Date: 18/Aug/20 00:45
Worklog Time Spent: 10m
Work Description: TheNeuralBit commented on a change in pull request
#11980:
URL: https://github.com/apache/beam/pull/11980#discussion_r471850250
##########
File path: sdks/python/apache_beam/typehints/schemas.py
##########
@@ -251,3 +258,23 @@ def named_tuple_from_schema(schema):
def named_tuple_to_schema(named_tuple):
return typing_to_runner_api(named_tuple).row_type.schema
+
+
+def schema_from_element_type(element_type): # (type) -> schema_pb2.Schema
+ """Get a schema for the given PCollection element_type.
+
+ Returns schema as a list of (name, python_type) tuples"""
+ if isinstance(element_type, row_type.RowTypeConstraint):
+ # TODO: Make sure beam.Row generated schemas are registered and de-duped
Review comment:
Filed BEAM-10722 for this
----------------------------------------------------------------
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: 471758)
Time Spent: 50m (was: 40m)
> Support for batching a schema-aware PCollection and processing as a Dataframe
> -----------------------------------------------------------------------------
>
> Key: BEAM-9546
> URL: https://issues.apache.org/jira/browse/BEAM-9546
> Project: Beam
> Issue Type: Improvement
> Components: sdk-py-core
> Reporter: Brian Hulette
> Assignee: Brian Hulette
> Priority: P2
> Time Spent: 50m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)