robertwb commented on a change in pull request #15099:
URL: https://github.com/apache/beam/pull/15099#discussion_r661013585



##########
File path: sdks/python/apache_beam/io/kafka.py
##########
@@ -96,8 +96,16 @@
      ('commit_offset_in_finalize', bool), ('timestamp_policy', str)])
 
 
-def default_io_expansion_service():
-  return BeamJarExpansionService('sdks:java:io:expansion-service:shadowJar')
+def default_io_expansion_service(args = None):
+  extra_args = None
+  if args:
+    if type(args) != type({}):
+      raise ValueError(
+          "Invalid value, expected dictionary for 
default_expansion_service_args, got %s"
+          % (type(args), ))
+    extra_args = ['{{PORT}}'] + list(map(lambda i: "--%s=%s" % (i[0], i[1]), 
args.items()))

Review comment:
       ["--%s=%s" % kv for kv in args.items()]




-- 
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