From cebc784494c7b3d43592c255476076d05addf680 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Tue, 13 Apr 2021 17:29:54 -0500 Subject: [PATCH] bug fix: lock, parallel processing bigquery --- setup.py | 2 +- transport/sql.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 862dbaa..997b5de 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() args = { "name":"data-transport", - "version":"1.3.8.2", + "version":"1.3.8.3", "author":"The Phi Technology LLC","author_email":"info@the-phi.com", "license":"MIT", "packages":["transport"]} diff --git a/transport/sql.py b/transport/sql.py index cd4aa2c..180b962 100644 --- a/transport/sql.py +++ b/transport/sql.py @@ -227,7 +227,7 @@ class BQReader(BigQuery,Reader) : SQL = SQL.replace(':dataset',self.dataset).replace(':DATASET',self.dataset) return pd.read_gbq(SQL,credentials=self.credentials,dialect='standard') if SQL else None class BQWriter(BigQuery,Writer): - Lock = Lock() + lock = Lock() def __init__(self,**_args): super().__init__(**_args)