[
https://issues.apache.org/jira/browse/BEAM-12113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17380062#comment-17380062
]
Beam JIRA Bot commented on BEAM-12113:
--------------------------------------
This issue is P2 but has been unassigned without any comment for 60 days so it
has been labeled "stale-P2". If this issue is still affecting you, we care!
Please comment and remove the label. Otherwise, in 14 days the issue will be
moved to P3.
Please see https://beam.apache.org/contribute/jira-priorities/ for a detailed
explanation of what these priorities mean.
> Some Dataframe tests are flaky: AttributeError: 'DataFrame' object has no
> attribute
> -----------------------------------------------------------------------------------
>
> Key: BEAM-12113
> URL: https://issues.apache.org/jira/browse/BEAM-12113
> Project: Beam
> Issue Type: Bug
> Components: test-failures
> Reporter: Valentyn Tymofieiev
> Priority: P2
> Labels: stale-P2
>
> Sample error:
> {noformat}
> Error Message
> AttributeError: 'DataFrame' object has no attribute 'val'
> Stacktrace
> self = <apache_beam.dataframe.transforms_test.TransformTest
> testMethod=test_scalar>
> def test_scalar(self):
> with expressions.allow_non_parallel_operations():
> a = pd.Series([1, 2, 6])
> self.run_scenario(a, lambda a: a.agg(sum))
> self.run_scenario(a, lambda a: a / a.agg(sum))
>
> # Tests scalar being used as an input to a downstream stage.
> df = pd.DataFrame({'key': ['a', 'a', 'b'], 'val': [1, 2, 6]})
> self.run_scenario(
> > df, lambda df: df.groupby('key').sum().val / df.val.agg(sum))
> apache_beam/dataframe/transforms_test.py:173:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> apache_beam/dataframe/transforms_test.py:76: in run_scenario
> expected = func(input)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> df = key val
> 0 a 1
> 1 a 2
> 2 b 6
> > df, lambda df: df.groupby('key').sum().val / df.val.agg(sum))
> E AttributeError: 'DataFrame' object has no attribute 'val'
> apache_beam/dataframe/transforms_test.py:173: AttributeError
> {noformat}
> Other tests that failed in the same run
> (https://ci-beam.apache.org/job/beam_PreCommit_Python_Phrase/2419/):
> apache_beam.dataframe.schemas_test.SchemasTest.test_bytes_proxy_roundtrip
> apache_beam.dataframe.transforms_test.TransformTest.test_groupby_sum_mean
--
This message was sent by Atlassian Jira
(v8.3.4#803005)