From 687b211b7b0cfe53b6e31d8c58d1bb4d4085023a Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 5 Jul 2023 15:58:51 -0500 Subject: [PATCH 1/2] bug fix: field_name (typographic error) --- transport/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/sql.py b/transport/sql.py index 00499e5..2977044 100644 --- a/transport/sql.py +++ b/transport/sql.py @@ -385,7 +385,7 @@ class BigQuery: try: if table : _dataset = self.dataset if 'dataset' not in _args else _args['dataset'] - sql = f"""SELECT column_name as table_name, data_type as field_type FROM {_dataset}.INFORMATION_SCHEMA.COLUMNS WHERE table_name = '{table}' """ + sql = f"""SELECT column_name as field_name, data_type as field_type FROM {_dataset}.INFORMATION_SCHEMA.COLUMNS WHERE table_name = '{table}' """ return self.read(sql=sql).to_dict(orient='records') # ref = self.client.dataset(self.dataset).table(table) From e9c02d558a1b12fa55a25b644bed66971c9065af Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 5 Jul 2023 15:59:13 -0500 Subject: [PATCH 2/2] version update --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8e1b424..2b17e62 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.7.4", + "version":"1.7.6", "author":"The Phi Technology LLC","author_email":"info@the-phi.com", "license":"MIT", "packages":["transport"]}