omnata-plugin-runtime 0.11.1a316__tar.gz → 0.11.2__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.
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/src/omnata_plugin_runtime/json_schema.py +14 -2
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/LICENSE +0 -0
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/README.md +0 -0
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/src/omnata_plugin_runtime/configuration.py +0 -0
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/src/omnata_plugin_runtime/omnata_plugin.py +0 -0
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/src/omnata_plugin_runtime/plugin_entrypoints.py +0 -0
- {omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/src/omnata_plugin_runtime/rate_limiting.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "omnata-plugin-runtime"
|
3
|
-
version = "0.11.
|
3
|
+
version = "0.11.2"
|
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"
|
@@ -534,7 +534,8 @@ class SnowflakeViewParts(BaseModel):
|
|
534
534
|
all_view_parts, ref_stream, ref_col
|
535
535
|
) for ref_col in ref_cols
|
536
536
|
)
|
537
|
-
|
537
|
+
if result:
|
538
|
+
return True
|
538
539
|
return False
|
539
540
|
|
540
541
|
def view_body(self):
|
@@ -582,7 +583,18 @@ class SnowflakeViewParts(BaseModel):
|
|
582
583
|
columns_only_referencing_own_stream.setdefault(part.stream_name, []).append(column.original_name)
|
583
584
|
else:
|
584
585
|
# if the column has no references, it can be included in the initial CTE for its own stream
|
585
|
-
|
586
|
+
# but only if no columns in other streams reference it
|
587
|
+
referenced_by_other_columns = False
|
588
|
+
for other_column in part.columns:
|
589
|
+
if other_column==column:
|
590
|
+
continue
|
591
|
+
if other_column.referenced_columns:
|
592
|
+
for ref_stream, ref_cols in other_column.referenced_columns.items():
|
593
|
+
if ref_stream != part.stream_name and column.original_name in ref_cols:
|
594
|
+
referenced_by_other_columns = True
|
595
|
+
break
|
596
|
+
if not referenced_by_other_columns:
|
597
|
+
columns_only_referencing_own_stream.setdefault(part.stream_name, []).append(column.original_name)
|
586
598
|
# if this part has joins to other streams, we need to include the join columns
|
587
599
|
for join in part.joins:
|
588
600
|
all_referenced_columns.setdefault(join.join_stream_name, []).append(join.join_stream_column)
|
File without changes
|
File without changes
|
File without changes
|
{omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/src/omnata_plugin_runtime/api.py
RENAMED
File without changes
|
File without changes
|
{omnata_plugin_runtime-0.11.1a316 → omnata_plugin_runtime-0.11.2}/src/omnata_plugin_runtime/forms.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|