mravi commented on code in PR #33208:
URL: https://github.com/apache/beam/pull/33208#discussion_r1870372265


##########
sdks/python/apache_beam/yaml/yaml_transform.py:
##########
@@ -955,10 +955,37 @@ def preprocess_languages(spec):
     else:
       return spec
 
+  def validate_transform_references(spec):
+    if 'transforms' not in spec:
+      return spec
+
+    for transform in spec['transforms']:
+      name = transform.get('name')
+      inputs = transform.get('input')
+      if name is None or inputs is None:
+        continue
+
+      input_values = []
+      if isinstance(inputs, str):
+        input_values = [inputs]
+      elif isinstance(inputs, list):
+        input_values = inputs
+      elif isinstance(inputs, dict):
+        input_values = list(inputs.values())
+
+      for input_value in input_values:
+        if isinstance(input_value, str) and input_value.lower() == 
name.lower():

Review Comment:
   the matching is case sensitive ! I will have the lower casing removed ! 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to