File tree 2 files changed +4
-16
lines changed 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ def __init__(
302
302
reauth = False ,
303
303
private_key = None ,
304
304
auth_local_webserver = False ,
305
- dialect = "legacy " ,
305
+ dialect = "standard " ,
306
306
location = None ,
307
307
credentials = None ,
308
308
):
@@ -732,8 +732,8 @@ def read_gbq(
732
732
http://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html#google_auth_oauthlib.flow.InstalledAppFlow.run_console
733
733
734
734
.. versionadded:: 0.2.0
735
- dialect : str, default 'legacy '
736
- Note: The default value is changing to 'standard' in a future verion .
735
+ dialect : str, default 'standard '
736
+ Note: The default value changed to 'standard' in version 0.10.0 .
737
737
738
738
SQL syntax dialect to use. Value can be one of:
739
739
@@ -796,14 +796,7 @@ def read_gbq(
796
796
dialect = context .dialect
797
797
798
798
if dialect is None :
799
- dialect = "legacy"
800
- warnings .warn (
801
- 'The default value for dialect is changing to "standard" in a '
802
- 'future version. Pass in dialect="legacy" or set '
803
- 'pandas_gbq.context.dialect="legacy" to disable this warning.' ,
804
- FutureWarning ,
805
- stacklevel = 2 ,
806
- )
799
+ dialect = "standard"
807
800
808
801
_test_google_api_imports ()
809
802
Original file line number Diff line number Diff line change @@ -429,11 +429,6 @@ def test_read_gbq_with_invalid_dialect():
429
429
assert "is not valid for dialect" in str (excinfo .value )
430
430
431
431
432
- def test_read_gbq_without_dialect_warns_future_change ():
433
- with pytest .warns (FutureWarning ):
434
- gbq .read_gbq ("SELECT 1" )
435
-
436
-
437
432
def test_generate_bq_schema_deprecated ():
438
433
# 11121 Deprecation of generate_bq_schema
439
434
with pytest .warns (FutureWarning ):
You can’t perform that action at this time.
0 commit comments