yeandy commented on a change in pull request #16615:
URL: https://github.com/apache/beam/pull/16615#discussion_r806947437
##########
File path: sdks/python/apache_beam/dataframe/frames_test.py
##########
@@ -1950,9 +1950,55 @@ class BeamSpecificTest(unittest.TestCase):
"""Tests for functionality that's specific to the Beam DataFrame API.
These features don't exist in pandas so we must verify them independently."""
- def assert_frame_data_equivalent(self, actual, expected):
+ def assert_frame_data_equivalent(
+ self, actual, expected, check_subset=False, extra_col_value=0):
"""Verify that actual is the same as expected, ignoring the index and order
- of the data."""
+ of the data.
+
+ Note: In order for us to perform non-deferred operations in Beam, we have
+ to enumerate all possible categories of data, even if they are ultimately
+ unobserved. The default Pandas implementation on the other hand does not
+ produce unobserved columns. This means when conducting tests, we need to
+ account for the fact that the Beam result may be a superset of that of the
+ Pandas result.
+
+ If ``check_subset`` is `True`, we verify that all of the columns in the
Review comment:
Fixed
--
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]