leiyiz commented on a change in pull request #12365:
URL: https://github.com/apache/beam/pull/12365#discussion_r460402749



##########
File path: 
sdks/python/apache_beam/testing/benchmarks/nexmark/models/nexmark_model.py
##########
@@ -26,27 +26,25 @@
   - The bid on an item for auction (Bid).
 
 """
+import json
 
 
 class Person(object):
   "Author of an auction or a bid."
 
   def __init__(
-      self, id, name, email, credit_card, city, state, timestamp, extra=None):
+      self, id, name, email, credit_card, city, state, date_time, extra=None):
     self.id = id
     self.name = name
-    self.email = email  # key
-    self.credit_card = credit_card
+    self.emailAddress = email  # key

Review comment:
       I did that because
   ```python
   json.dumps(self.__dict__)
   ``` 
   outputs fieldnames that is the same with the name of fields so doing camel 
case sort of lines up with java version. I'll try to look for ways to change 
the names




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to