omnata-plugin-runtime 0.10.10a261__tar.gz → 0.10.11a262__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.10.10a261
3
+ Version: 0.10.11a262
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.10.10-a261"
3
+ version = "0.10.11-a262"
4
4
  description = "Classes and common runtime components for building and running Omnata Plugins"
5
5
  authors = ["James Weakley <james.weakley@omnata.com>"]
6
6
  readme = "README.md"
@@ -463,6 +463,12 @@ class SnowflakeViewParts(BaseModel):
463
463
  There will be a final SELECT statement that selects all columns from the main stream, and then adds any columns obtained via joins.
464
464
  In the final select statement, the join columns will be aliased with their transformed names.
465
465
  """
466
+ # Deduplicate the joined parts
467
+ joined_parts_deduped:List[SnowflakeViewPart] = []
468
+ for part in self.joined_parts:
469
+ if part.stream_name!=self.main_part.stream_name and part.stream_name not in [p.stream_name for p in joined_parts_deduped]:
470
+ joined_parts_deduped.append(part)
471
+
466
472
  # first, we need to collapse all referenced columns into a single map
467
473
  all_referenced_columns:Dict[str,List[str]] = {}
468
474
  for part in [self.main_part] + self.joined_parts: