[ 
https://issues.apache.org/jira/browse/BEAM-10549?focusedWorklogId=471011&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-471011
 ]

ASF GitHub Bot logged work on BEAM-10549:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Aug/20 05:16
            Start Date: 15/Aug/20 05:16
    Worklog Time Spent: 10m 
      Work Description: robertwb commented on a change in pull request #12352:
URL: https://github.com/apache/beam/pull/12352#discussion_r470939725



##########
File path: sdks/python/apache_beam/runners/worker/opcounters.py
##########
@@ -224,8 +230,25 @@ def _observable_callback_inner(value, is_encoded=False):
 
     return _observable_callback_inner
 
+  def type_check(self, value):
+    # type: (any, bool) -> None
+    for transform_label, type_constraint_tuple in 
self.output_type_constraints.items():
+      parameter_name, constraint = type_constraint_tuple
+      if constraint is not None:
+        try:
+          _check_instance_type(constraint, value, parameter_name, verbose=True)
+        except TypeCheckError as e:
+          if not transform_label.startswith('ParDo'):

Review comment:
       Oh... Yeah, changing all the error messages would be a pain, even if 
they're wrong now. Can you file a JIRA and drop a TODO to fix that then? 




----------------------------------------------------------------
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: 471011)
    Time Spent: 6h  (was: 5h 50m)

> Improve Runtime Type Checking Performance
> -----------------------------------------
>
>                 Key: BEAM-10549
>                 URL: https://issues.apache.org/jira/browse/BEAM-10549
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Saavan Nanavati
>            Assignee: Saavan Nanavati
>            Priority: P2
>          Time Spent: 6h
>  Remaining Estimate: 0h
>
> The performance gain will come from moving the runtime type check from a 
> decorator to OperationCounters.
>  
> This has (2) improvements:
>  # Cython optimizable
>  # Sampling is a built-in feature
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to