This commit is contained in:
Steve Nyemba 2021-06-20 18:56:12 -05:00
parent b5eb5e0991
commit 4c810fe57a
1 changed files with 1 additions and 6 deletions

View File

@ -226,12 +226,7 @@ class BQReader(BigQuery,Reader) :
SQL += " LIMIT "+str(_args['limit'])
if (':dataset' in SQL or ':DATASET' in SQL) and self.dataset:
SQL = SQL.replace(':dataset',self.dataset).replace(':DATASET',self.dataset)
_info = {'credentials':self.credentials,'dialect':'standard'}
if 'dtypes' in _args or self.dtypes :
if not self.dtypes :
self.dtypes = _args ['dtypes'] if 'dtypes' in _args else None
if self.dtypes :
_info['dtypes'] = self.dtypes
_info = {'credentials':self.credentials,'dialect':'standard'}
return pd.read_gbq(SQL,**_info) if SQL else None
# return pd.read_gbq(SQL,credentials=self.credentials,dialect='standard') if SQL else None
class BQWriter(BigQuery,Writer):