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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rdxz2-utill
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Your daily Python utility
5
5
  Author-email: Richard Dharmawan <richard.dharmawan@gmail.com>
6
6
  License: MIT License
@@ -1,6 +1,6 @@
1
- rdxz2_utill-0.1.0.dist-info/licenses/LICENSE,sha256=PF9CUvzP8XFYopEAzrMzSCovF7RdBdscPqJCDC6KjPc,1073
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=1BKjYa05yfOBInm245373lfi4sbOZKybYXdYmON2npM,24985
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.0.dist-info/METADATA,sha256=iB4cHw4zIQnP_2DHvIkBpwKxR5s32RVXr9xyJiY-GX4,4401
32
- rdxz2_utill-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
33
- rdxz2_utill-0.1.0.dist-info/entry_points.txt,sha256=9n5NWz5Wi9jDvYhB_81_4icgT5xABZ-QivHD8ibcafg,47
34
- rdxz2_utill-0.1.0.dist-info/top_level.txt,sha256=tuAYZoCsr02JYbpZj7I6fl1IIo53v3GG0uoj-_fINVk,6
35
- rdxz2_utill-0.1.0.dist-info/RECORD,,
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
- query_parts.append(f'OPTIONS (\n{",\n".join(table_options)}\n)')
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
- query_parts.append(f'OPTIONS (\n{",\n".join(table_options)}\n)')
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