rdxz2-utill 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rdxz2-utill might be problematic. Click here for more details.
- {rdxz2_utill-0.1.0.dist-info → rdxz2_utill-0.1.1.dist-info}/METADATA +1 -1
- {rdxz2_utill-0.1.0.dist-info → rdxz2_utill-0.1.1.dist-info}/RECORD +7 -7
- utill/my_bq.py +4 -2
- {rdxz2_utill-0.1.0.dist-info → rdxz2_utill-0.1.1.dist-info}/WHEEL +0 -0
- {rdxz2_utill-0.1.0.dist-info → rdxz2_utill-0.1.1.dist-info}/entry_points.txt +0 -0
- {rdxz2_utill-0.1.0.dist-info → rdxz2_utill-0.1.1.dist-info}/licenses/LICENSE +0 -0
- {rdxz2_utill-0.1.0.dist-info → rdxz2_utill-0.1.1.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
rdxz2_utill-0.1.
|
|
1
|
+
rdxz2_utill-0.1.1.dist-info/licenses/LICENSE,sha256=PF9CUvzP8XFYopEAzrMzSCovF7RdBdscPqJCDC6KjPc,1073
|
|
2
2
|
utill/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
utill/my_bq.py,sha256=
|
|
3
|
+
utill/my_bq.py,sha256=ANyKcw4VDn3L868ezYUFSgbmbaUjD_PW6XZ0fqxUx6s,25093
|
|
4
4
|
utill/my_compare.py,sha256=619QbVk3GihWxen95yVnivKHkah8GgPTLGiSkgHxykw,886
|
|
5
5
|
utill/my_const.py,sha256=88dOqn6NPQ5-hfRqdkew5POoAIyO91XXOGvN76oNsdo,251
|
|
6
6
|
utill/my_csv.py,sha256=AT5sAbAlYqnAmNgQMTSqEueRXM4D42yNPb5C3Hedy6c,2921
|
|
@@ -28,8 +28,8 @@ utill/cmd/_pg.py,sha256=RVxEiSifyIwMDYDM69vt6WSLdVDr1cMzY6r4T2PzNRA,492
|
|
|
28
28
|
utill/cmd/utill.py,sha256=TlHfiwOUcK1m58PrRCjX9sARiPYZUsoTk-KOTCOz1vM,3558
|
|
29
29
|
utill/templates/mb.json,sha256=M46ZHSaSh4rbD_KGUViGr2B2ZV8_PC-O5Evqi35JK5g,59
|
|
30
30
|
utill/templates/pg.json,sha256=LkJt0VV3zcyt7Tpn6gulsoVQgUc-9uImXOStvzu8cdU,271
|
|
31
|
-
rdxz2_utill-0.1.
|
|
32
|
-
rdxz2_utill-0.1.
|
|
33
|
-
rdxz2_utill-0.1.
|
|
34
|
-
rdxz2_utill-0.1.
|
|
35
|
-
rdxz2_utill-0.1.
|
|
31
|
+
rdxz2_utill-0.1.1.dist-info/METADATA,sha256=qroXZ2Hm-L-YQHR8xuIcpTqrbEuy4_CDceCZeNqTi1Q,4401
|
|
32
|
+
rdxz2_utill-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
33
|
+
rdxz2_utill-0.1.1.dist-info/entry_points.txt,sha256=9n5NWz5Wi9jDvYhB_81_4icgT5xABZ-QivHD8ibcafg,47
|
|
34
|
+
rdxz2_utill-0.1.1.dist-info/top_level.txt,sha256=tuAYZoCsr02JYbpZj7I6fl1IIo53v3GG0uoj-_fINVk,6
|
|
35
|
+
rdxz2_utill-0.1.1.dist-info/RECORD,,
|
utill/my_bq.py
CHANGED
|
@@ -178,7 +178,8 @@ class BQ():
|
|
|
178
178
|
schema_str = ',\n'.join([column['name'] for column in schema])
|
|
179
179
|
query_parts.append(f'(\n{schema_str}\n)')
|
|
180
180
|
if table_options:
|
|
181
|
-
|
|
181
|
+
table_options_str = ',\n'.join(table_options)
|
|
182
|
+
query_parts.append(f'OPTIONS (\n{table_options_str}\n)')
|
|
182
183
|
else:
|
|
183
184
|
logger.debug('Table not exist, constructing CREATE TABLE query ...')
|
|
184
185
|
query_parts = [
|
|
@@ -193,7 +194,8 @@ class BQ():
|
|
|
193
194
|
clustering_fields_str = ', '.join([f'`{field}`' for field in clustering_fields])
|
|
194
195
|
query_parts.append(f'CLUSTER BY {clustering_fields_str}')
|
|
195
196
|
if table_options:
|
|
196
|
-
|
|
197
|
+
table_options_str = ',\n'.join(table_options)
|
|
198
|
+
query_parts.append(f'OPTIONS (\n{table_options_str}\n)')
|
|
197
199
|
query_parts.append('AS')
|
|
198
200
|
query_parts.append(textwrap.dedent(query).strip())
|
|
199
201
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|