Skip to content

tests.system.test_gbq.TestReadGBQIntegration: test_array_length_zero failed #436

Closed
@flaky-bot

Description

@flaky-bot

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 928e47b
buildURL: Build Status, Sponge
status: failed

Test output
self = 
project_id = 'precise-truck-742'
def test_array_length_zero(self, project_id):
    query = """WITH t as (
               SELECT "a" letter, [""] as array_field
               UNION ALL
               SELECT "b" letter, [] as array_field)

               select letter, array_field, array_length(array_field) len
               from t
               order by letter ASC"""
    df = gbq.read_gbq(
        query,
        project_id=project_id,
        credentials=self.credentials,
        dialect="standard",
    )
    expected = DataFrame(
        [["a", [""], 1], ["b", [], 0]], columns=["letter", "array_field", "len"],
    )
  tm.assert_frame_equal(df, expected)

E AssertionError: Attributes of DataFrame.iloc[:, 2] (column name="len") are different
E
E Attribute "dtype" are different
E [left]: Int64
E [right]: int64

tests/system/test_gbq.py:879: AssertionError

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery-pandas API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions