@@ -471,7 +471,7 @@ def _parse_data(schema, rows):
471
471
472
472
def read_gbq (query , project_id = None , index_col = None , col_order = None ,
473
473
reauth = False , private_key = None , auth_local_webserver = False ,
474
- dialect = 'legacy' , location = None , configuration = None ,
474
+ dialect = None , location = None , configuration = None ,
475
475
verbose = None ):
476
476
r"""Load data from Google BigQuery using google-cloud-python
477
477
@@ -515,6 +515,8 @@ def read_gbq(query, project_id=None, index_col=None, col_order=None,
515
515
516
516
.. versionadded:: 0.2.0
517
517
dialect : str, default 'legacy'
518
+ Note: The default value is changing to 'standard' in a future verion.
519
+
518
520
SQL syntax dialect to use. Value can be one of:
519
521
520
522
``'legacy'``
@@ -552,6 +554,13 @@ def read_gbq(query, project_id=None, index_col=None, col_order=None,
552
554
df: DataFrame
553
555
DataFrame representing results of query.
554
556
"""
557
+ if dialect is None :
558
+ dialect = 'legacy'
559
+ warnings .warn (
560
+ 'The default value for dialect is changing to "standard" in a '
561
+ 'future version. Pass in dialect="legacy" to disable this '
562
+ 'warning.' ,
563
+ FutureWarning , stacklevel = 1 )
555
564
556
565
_test_google_api_imports ()
557
566
0 commit comments