FlowerPower 0.11.6.4__py3-none-any.whl → 0.11.6.5__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.
flowerpower/fs/ext.py CHANGED
@@ -923,7 +923,10 @@ def _read_parquet(
923
923
  schemas = [t.schema for t in tables]
924
924
  unified_schema = unify_schemas_pa(schemas)
925
925
  tables = [cast_schema(t, unified_schema) for t in tables]
926
- result = pa.concat_tables(tables, promote_options="permissive")
926
+ result = pa.concat_tables(
927
+ [table for table in tables if table.num_rows > 0],
928
+ promote_options="permissive",
929
+ )
927
930
  # if opt_dtypes:
928
931
  # result = opt_dtype_pa(result, strict=False)
929
932
  return result
@@ -932,7 +935,10 @@ def _read_parquet(
932
935
  # tables = opt_dtype_pa(tables, strict=False)
933
936
  return tables
934
937
  else:
935
- return pa.concat_tables(tables, promote_options="permissive")
938
+ return pa.concat_tables(
939
+ [table for table in tables if table.num_rows > 0],
940
+ promote_options="permissive",
941
+ )
936
942
  return tables
937
943
 
938
944
 
@@ -1052,7 +1058,10 @@ def _read_parquet_batches(
1052
1058
  schemas = [t.schema for t in batch_tables]
1053
1059
  unified_schema = unify_schemas_pa(schemas)
1054
1060
  batch_tables = [cast_schema(t, unified_schema) for t in batch_tables]
1055
- result = pa.concat_tables(batch_tables, promote_options="permissive")
1061
+ result = pa.concat_tables(
1062
+ [table for table in batch_tables if table.num_rows > 0],
1063
+ promote_options="permissive",
1064
+ )
1056
1065
  # if opt_dtypes:
1057
1066
  # result = opt_dtype_pa(result, strict=False)
1058
1067
  yield result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: FlowerPower
3
- Version: 0.11.6.4
3
+ Version: 0.11.6.5
4
4
  Summary: A simple workflow framework. Hamilton + APScheduler = FlowerPower
5
5
  Author-email: "Volker L." <ligno.blades@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/legout/flowerpower
@@ -18,7 +18,7 @@ flowerpower/cli/pipeline.py,sha256=60P6u_QOSgp0jJXEMxazEEo5Sh7-SWFo-Kkuaz21YuI,3
18
18
  flowerpower/cli/utils.py,sha256=nDSSj_1nlYlMmj252kRZeohhFqHv9yvdgDEduQCyWOc,5152
19
19
  flowerpower/fs/__init__.py,sha256=uZaPXErEfQqQRbKRIjkB9yiygd45X5_psYn9-VVrBTQ,910
20
20
  flowerpower/fs/base.py,sha256=TqgqBsaFj13O1NpAr8kHuGJ9CTlaSWViMB8Ai_iuCjs,22761
21
- flowerpower/fs/ext.py,sha256=2NmhSbCIL0qnONMRNPHcPUuR39bGjWpxJE4hNHU5Rvw,69044
21
+ flowerpower/fs/ext.py,sha256=U-MX-OYsqhNzapcGVaGTifeMTZ5hY7VlAtQ8c8j5zi0,69314
22
22
  flowerpower/fs/storage_options.py,sha256=msq5TpxAU8tcE_Bxjw6SyxaFa75UjdYnR4-O9U2wmbk,48034
23
23
  flowerpower/job_queue/__init__.py,sha256=a25hIqv2xoFKb4JZlyUukS0ppZ9-2sJKH3XAvbk3rlk,10788
24
24
  flowerpower/job_queue/base.py,sha256=YwLunDQSyqkSU_vJ69C5SSybJeJP1bAiZ3teUtOchxA,13640
@@ -94,9 +94,9 @@ flowerpower/utils/monkey.py,sha256=VPl3yimoWhwD9kI05BFsjNvtyQiDyLfY4Q85Bb6Ma0w,2
94
94
  flowerpower/utils/open_telemetry.py,sha256=fQWJWbIQFtKIxMBjAWeF12NGnqT0isO3A3j-DSOv_vE,949
95
95
  flowerpower/utils/scheduler.py,sha256=2zJ_xmLXpvXUQNF1XS2Gqm3Ogo907ctZ50GtvQB_rhE,9354
96
96
  flowerpower/utils/templates.py,sha256=ouyEeSDqa9PjW8c32fGpcINlpC0WToawRFZkMPtwsLE,1591
97
- flowerpower-0.11.6.4.dist-info/licenses/LICENSE,sha256=9AkLexxrmr0aBgSHiqxpJk9wgazpP1CTJyiDyr56J9k,1063
98
- flowerpower-0.11.6.4.dist-info/METADATA,sha256=y90zVAntdH6BJpp1vM2magFQYMI3Tj_UsntYFI6dcj0,21612
99
- flowerpower-0.11.6.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
100
- flowerpower-0.11.6.4.dist-info/entry_points.txt,sha256=61X11i5a2IwC9LBiP20XCDl5zMOigGCjMCx17B7bDbQ,52
101
- flowerpower-0.11.6.4.dist-info/top_level.txt,sha256=VraH4WtEUfSxs5L-rXwDQhzQb9eLHTUtgvmFZ2dAYnA,12
102
- flowerpower-0.11.6.4.dist-info/RECORD,,
97
+ flowerpower-0.11.6.5.dist-info/licenses/LICENSE,sha256=9AkLexxrmr0aBgSHiqxpJk9wgazpP1CTJyiDyr56J9k,1063
98
+ flowerpower-0.11.6.5.dist-info/METADATA,sha256=Fe62GXd7EJ6xYrz8co03Q7FG-FXhptkvHfm3UQDAq9c,21612
99
+ flowerpower-0.11.6.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
100
+ flowerpower-0.11.6.5.dist-info/entry_points.txt,sha256=61X11i5a2IwC9LBiP20XCDl5zMOigGCjMCx17B7bDbQ,52
101
+ flowerpower-0.11.6.5.dist-info/top_level.txt,sha256=VraH4WtEUfSxs5L-rXwDQhzQb9eLHTUtgvmFZ2dAYnA,12
102
+ flowerpower-0.11.6.5.dist-info/RECORD,,