bug fix: lock, parallel processing bigquery
This commit is contained in:
parent
84e212d5a3
commit
cebc784494
2
setup.py
2
setup.py
|
@ -8,7 +8,7 @@ def read(fname):
|
||||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||||
args = {
|
args = {
|
||||||
"name":"data-transport",
|
"name":"data-transport",
|
||||||
"version":"1.3.8.2",
|
"version":"1.3.8.3",
|
||||||
"author":"The Phi Technology LLC","author_email":"info@the-phi.com",
|
"author":"The Phi Technology LLC","author_email":"info@the-phi.com",
|
||||||
"license":"MIT",
|
"license":"MIT",
|
||||||
"packages":["transport"]}
|
"packages":["transport"]}
|
||||||
|
|
|
@ -227,7 +227,7 @@ class BQReader(BigQuery,Reader) :
|
||||||
SQL = SQL.replace(':dataset',self.dataset).replace(':DATASET',self.dataset)
|
SQL = SQL.replace(':dataset',self.dataset).replace(':DATASET',self.dataset)
|
||||||
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()
|
||||||
def __init__(self,**_args):
|
def __init__(self,**_args):
|
||||||
super().__init__(**_args)
|
super().__init__(**_args)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue