Skip to content

Test failure on Python 3.8 -- Integer NULL represented as NaN instead of None #332

Closed
@tswast

Description

@tswast
========================================================= FAILURES ==========================================================
___________________________ TestReadGBQIntegration.test_should_properly_handle_null_integers[env] ___________________________

self = <tests.system.test_gbq.TestReadGBQIntegration object at 0x7fc296a10a90>, project_id = 'swast-scratch'

    def test_should_properly_handle_null_integers(self, project_id):
        query = "SELECT INTEGER(NULL) AS null_integer"
        df = gbq.read_gbq(
            query,
            project_id=project_id,
            credentials=self.credentials,
            dialect="legacy",
        )
>       tm.assert_frame_equal(
            df,
            DataFrame({"null_integer": pandas.Series([None], dtype="object")}),
        )
E       AssertionError: Attributes of DataFrame.iloc[:, 0] (column name="null_integer") are different
E       
E       Attribute "dtype" are different
E       [left]:  float64
E       [right]: object

tests/system/test_gbq.py:143: AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions