diff --git a/pandas_gbq/gbq.py b/pandas_gbq/gbq.py index d35eba05..82548282 100644 --- a/pandas_gbq/gbq.py +++ b/pandas_gbq/gbq.py @@ -302,7 +302,7 @@ def __init__( reauth=False, private_key=None, auth_local_webserver=False, - dialect="legacy", + dialect="standard", location=None, credentials=None, ): @@ -732,8 +732,8 @@ def read_gbq( http://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_console .. versionadded:: 0.2.0 - dialect : str, default 'legacy' - Note: The default value is changing to 'standard' in a future verion. + dialect : str, default 'standard' + Note: The default value changed to 'standard' in version 0.10.0. SQL syntax dialect to use. Value can be one of: @@ -796,14 +796,7 @@ def read_gbq( dialect = context.dialect if dialect is None: - dialect = "legacy" - warnings.warn( - 'The default value for dialect is changing to "standard" in a ' - 'future version. Pass in dialect="legacy" or set ' - 'pandas_gbq.context.dialect="legacy" to disable this warning.', - FutureWarning, - stacklevel=2, - ) + dialect = "standard" _test_google_api_imports() diff --git a/tests/unit/test_gbq.py b/tests/unit/test_gbq.py index c4d8fe2e..ab16ec0b 100644 --- a/tests/unit/test_gbq.py +++ b/tests/unit/test_gbq.py @@ -429,11 +429,6 @@ def test_read_gbq_with_invalid_dialect(): assert "is not valid for dialect" in str(excinfo.value) -def test_read_gbq_without_dialect_warns_future_change(): - with pytest.warns(FutureWarning): - gbq.read_gbq("SELECT 1") - - def test_generate_bq_schema_deprecated(): # 11121 Deprecation of generate_bq_schema with pytest.warns(FutureWarning):