|
|
@ -228,10 +228,11 @@ class BQReader(BigQuery,Reader) :
|
|
|
|
SQL = SQL.replace(':dataset',self.dataset).replace(':DATASET',self.dataset)
|
|
|
|
SQL = SQL.replace(':dataset',self.dataset).replace(':DATASET',self.dataset)
|
|
|
|
_info = {'credentials':self.credentials,'dialect':'standard'}
|
|
|
|
_info = {'credentials':self.credentials,'dialect':'standard'}
|
|
|
|
if 'dtypes' in _args or self.dtypes :
|
|
|
|
if 'dtypes' in _args or self.dtypes :
|
|
|
|
self.dtypes = _args ['dtypes'] if 'dtypes' in self.dtypes else None
|
|
|
|
if not self.dtypes :
|
|
|
|
|
|
|
|
self.dtypes = _args ['dtypes'] if 'dtypes' in _args else None
|
|
|
|
if self.dtypes :
|
|
|
|
if self.dtypes :
|
|
|
|
_info['dtypes'] = self.dtypes
|
|
|
|
_info['dtypes'] = self.dtypes
|
|
|
|
return pd.read_gbq(SQL,*_info) if SQL else None
|
|
|
|
return pd.read_gbq(SQL,**_info) if SQL else None
|
|
|
|
# return pd.read_gbq(SQL,credentials=self.credentials,dialect='standard') if SQL else None
|
|
|
|
# return pd.read_gbq(SQL,credentials=self.credentials,dialect='standard') if SQL else None
|
|
|
|
class BQWriter(BigQuery,Writer):
|
|
|
|
class BQWriter(BigQuery,Writer):
|
|
|
|
lock = Lock()
|
|
|
|
lock = Lock()
|
|
|
|