omnata-plugin-runtime 0.10.26a281__py3-none-any.whl → 0.10.26a283__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.
@@ -475,6 +475,15 @@ class SnowflakeViewParts(BaseModel):
475
475
  # first, we need to collapse all referenced columns into a single map
476
476
  all_referenced_columns:Dict[str,List[str]] = {}
477
477
  for part in [self.main_part] + self.joined_parts:
478
+ # if the main part references any columns in this part in its joins, we need to include those columns
479
+ aliases_for_stream = [j.join_stream_alias for j in self.main_part.joins
480
+ if j.join_stream_name == part.stream_name]
481
+ columns_used_in_joins = [
482
+ j.left_column for j in self.main_part.joins if j.left_alias in aliases_for_stream
483
+ ]
484
+ if part.stream_name not in all_referenced_columns:
485
+ all_referenced_columns[part.stream_name] = []
486
+ all_referenced_columns[part.stream_name] += columns_used_in_joins
478
487
  for column in part.columns:
479
488
  if column.referenced_columns:
480
489
  for stream_name, referenced_columns in column.referenced_columns.items():
@@ -485,8 +494,6 @@ class SnowflakeViewParts(BaseModel):
485
494
  if join.join_stream_name not in all_referenced_columns:
486
495
  all_referenced_columns[join.join_stream_name] = []
487
496
  all_referenced_columns[join.join_stream_name].append(join.join_stream_column)
488
- if part.stream_name not in all_referenced_columns:
489
- all_referenced_columns[part.stream_name] = []
490
497
  all_referenced_columns[part.stream_name].append(join.left_column)
491
498
 
492
499
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.10.26a281
3
+ Version: 0.10.26a283
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -2,12 +2,12 @@ omnata_plugin_runtime/__init__.py,sha256=MS9d1whnfT_B3-ThqZ7l63QeC_8OEKTuaYV5wTw
2
2
  omnata_plugin_runtime/api.py,sha256=baGraSMiD4Yvi3ZWrEv_TKh8Ktd1U8riBdOpe9j0Puw,8202
3
3
  omnata_plugin_runtime/configuration.py,sha256=ud3O9R03BbUjGUJDVpGbnADqKw5oLVy65EQN1g6gmKg,46811
4
4
  omnata_plugin_runtime/forms.py,sha256=Lrbr3otsFDrvHWJw7v-slsW4PvEHJ6BG1Yl8oaJfiDo,20529
5
- omnata_plugin_runtime/json_schema.py,sha256=FlzHyiwGUi1YYpYYG5PFETQhnREWoCEBFHImJi4IG0U,46718
5
+ omnata_plugin_runtime/json_schema.py,sha256=Mq1R_TAYklG92iDUmeZFdjuUr-PEoejIXNs6hICyOgc,47196
6
6
  omnata_plugin_runtime/logging.py,sha256=WBuZt8lF9E5oFWM4KYQbE8dDJ_HctJ1pN3BHwU6rcd0,4461
7
7
  omnata_plugin_runtime/omnata_plugin.py,sha256=vD6FKJIFzTRYbj1Q51LSE-Kar4GPTq9SJcBU5jCYtiQ,134074
8
8
  omnata_plugin_runtime/plugin_entrypoints.py,sha256=SlpI3VF3EdTGFCr9wDD0kV4v6B6bHfNDFdC3slU2y8Y,32241
9
9
  omnata_plugin_runtime/rate_limiting.py,sha256=qpr5esU4Ks8hMzuMpSR3gLFdor2ZUXYWCjmsQH_K6lQ,25882
10
- omnata_plugin_runtime-0.10.26a281.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
11
- omnata_plugin_runtime-0.10.26a281.dist-info/METADATA,sha256=YV1dNopiivThdthsqWTES60aN12KCGnXC57oGmIaxUc,2212
12
- omnata_plugin_runtime-0.10.26a281.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
13
- omnata_plugin_runtime-0.10.26a281.dist-info/RECORD,,
10
+ omnata_plugin_runtime-0.10.26a283.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
11
+ omnata_plugin_runtime-0.10.26a283.dist-info/METADATA,sha256=T7SobS5pdsUfrZ3xk4Py65aUdjM6xcznZjYcCi6HtOc,2212
12
+ omnata_plugin_runtime-0.10.26a283.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
13
+ omnata_plugin_runtime-0.10.26a283.dist-info/RECORD,,