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

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

                Author: ASF GitHub Bot
            Created on: 11/Mar/21 17:21
            Start Date: 11/Mar/21 17:21
    Worklog Time Spent: 10m 
      Work Description: robertwb commented on a change in pull request #14156:
URL: https://github.com/apache/beam/pull/14156#discussion_r592109817



##########
File path: sdks/python/apache_beam/pvalue.py
##########
@@ -666,15 +666,14 @@ def as_dict(self):
     return dict(self.__dict__)
 
   def __iter__(self):
-    for _, value in sorted(self.__dict__.items()):
+    for _, value in self.__dict__.items():
       yield value
 
   def __repr__(self):
-    return 'Row(%s)' % ', '.join(
-        '%s=%r' % kv for kv in sorted(self.__dict__.items()))
+    return 'Row(%s)' % ', '.join('%s=%r' % kv for kv in self.__dict__.items())
 
   def __hash__(self):
-    return hash(type(sorted(self.__dict__.items())))
+    return hash(type(self.__dict__.items()))

Review comment:
       This is definitely a bug. 




----------------------------------------------------------------
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: 564763)
    Time Spent: 2h 20m  (was: 2h 10m)

> DataframeTransfom, BatchRowsAsDataFrame do not preserve field order when 
> schema created with beam.Row
> -----------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-11929
>                 URL: https://issues.apache.org/jira/browse/BEAM-11929
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>    Affects Versions: 2.26.0, 2.27.0, 2.28.0
>            Reporter: Brian Hulette
>            Assignee: Brian Hulette
>            Priority: P2
>              Labels: dataframe-api
>             Fix For: 2.29.0
>
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> The workaround is to use a NamedTuple instance with DataframeTransform.



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

Reply via email to