omnata-plugin-runtime 0.11.0a312__tar.gz → 0.11.0a313__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.0a312 → omnata_plugin_runtime-0.11.0a313}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.11.0a312 → omnata_plugin_runtime-0.11.0a313}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.11.0a312 → omnata_plugin_runtime-0.11.0a313}/src/omnata_plugin_runtime/json_schema.py +2 -12
- {omnata_plugin_runtime-0.11.0a312 → omnata_plugin_runtime-0.11.0a313}/LICENSE +0 -0
- {omnata_plugin_runtime-0.11.0a312 → omnata_plugin_runtime-0.11.0a313}/README.md +0 -0
- {omnata_plugin_runtime-0.11.0a312 → omnata_plugin_runtime-0.11.0a313}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.11.0a312 → omnata_plugin_runtime-0.11.0a313}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.11.0a312 → omnata_plugin_runtime-0.11.0a313}/src/omnata_plugin_runtime/configuration.py +0 -0
- {omnata_plugin_runtime-0.11.0a312 → omnata_plugin_runtime-0.11.0a313}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.11.0a312 → omnata_plugin_runtime-0.11.0a313}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.11.0a312 → omnata_plugin_runtime-0.11.0a313}/src/omnata_plugin_runtime/omnata_plugin.py +0 -0
- {omnata_plugin_runtime-0.11.0a312 → omnata_plugin_runtime-0.11.0a313}/src/omnata_plugin_runtime/plugin_entrypoints.py +0 -0
- {omnata_plugin_runtime-0.11.0a312 → omnata_plugin_runtime-0.11.0a313}/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.0-
|
3
|
+
version = "0.11.0-a313"
|
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"
|
@@ -470,20 +470,10 @@ class SnowflakeViewPart(BaseModel):
|
|
470
470
|
c.name_with_comment(binding_list) for c in self.columns
|
471
471
|
]
|
472
472
|
|
473
|
-
def cte_text(self,original_name: bool = False,
|
474
|
-
include_only_columns:Optional[List[str]] = None,
|
475
|
-
include_extra_columns:Optional[List[str]] = None
|
476
|
-
) -> str:
|
473
|
+
def cte_text(self,original_name: bool = False, include_only_columns:Optional[List[str]] = None) -> str:
|
477
474
|
"""
|
478
475
|
Returns the CTE text for this view part.
|
479
476
|
"""
|
480
|
-
if include_extra_columns is not None:
|
481
|
-
# includes direct columns plus any extra specified
|
482
|
-
return f""" "{self.stream_name}" as (
|
483
|
-
select {', '.join([c.definition(original_name=original_name,remove_stream_prefix=self.stream_name) for c in self.columns
|
484
|
-
if c.original_name in include_extra_columns or not c.is_join_column])}
|
485
|
-
from {self.raw_table_location.get_fully_qualified_name()}
|
486
|
-
) """
|
487
477
|
if include_only_columns is None:
|
488
478
|
return f""" "{self.stream_name}" as (
|
489
479
|
select {', '.join([c.definition(original_name=original_name,remove_stream_prefix=self.stream_name) for c in self.direct_columns()])}
|
@@ -553,7 +543,7 @@ class SnowflakeViewParts(BaseModel):
|
|
553
543
|
|
554
544
|
|
555
545
|
ctes = [
|
556
|
-
self.main_part.cte_text(original_name=True
|
546
|
+
self.main_part.cte_text(original_name=True)
|
557
547
|
] + [
|
558
548
|
part.cte_text(original_name=True,include_only_columns=all_referenced_columns.get(part.stream_name))
|
559
549
|
for part in joined_parts_deduped
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|