omnata-plugin-runtime 0.10.6a241__tar.gz → 0.10.6a242__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.10.6a241 → omnata_plugin_runtime-0.10.6a242}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.10.6a241 → omnata_plugin_runtime-0.10.6a242}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.10.6a241 → omnata_plugin_runtime-0.10.6a242}/src/omnata_plugin_runtime/json_schema.py +5 -7
- {omnata_plugin_runtime-0.10.6a241 → omnata_plugin_runtime-0.10.6a242}/LICENSE +0 -0
- {omnata_plugin_runtime-0.10.6a241 → omnata_plugin_runtime-0.10.6a242}/README.md +0 -0
- {omnata_plugin_runtime-0.10.6a241 → omnata_plugin_runtime-0.10.6a242}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.10.6a241 → omnata_plugin_runtime-0.10.6a242}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.10.6a241 → omnata_plugin_runtime-0.10.6a242}/src/omnata_plugin_runtime/configuration.py +0 -0
- {omnata_plugin_runtime-0.10.6a241 → omnata_plugin_runtime-0.10.6a242}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.10.6a241 → omnata_plugin_runtime-0.10.6a242}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.10.6a241 → omnata_plugin_runtime-0.10.6a242}/src/omnata_plugin_runtime/omnata_plugin.py +0 -0
- {omnata_plugin_runtime-0.10.6a241 → omnata_plugin_runtime-0.10.6a242}/src/omnata_plugin_runtime/plugin_entrypoints.py +0 -0
- {omnata_plugin_runtime-0.10.6a241 → omnata_plugin_runtime-0.10.6a242}/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.10.6-
|
3
|
+
version = "0.10.6-a242"
|
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"
|
@@ -434,14 +434,12 @@ class SnowflakeViewParts(BaseModel):
|
|
434
434
|
"""
|
435
435
|
ctes = [self.main_part.cte_text(original_name=True)] + [part.cte_text(original_name=True) for part in self.joined_parts]
|
436
436
|
all_ctes = "\n,".join(ctes)
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
# the joined columns may reference the direct columns, so we need to order them correctly
|
442
|
-
final_column_clauses = direct_column_clauses + join_column_clauses
|
437
|
+
main_columns = SnowflakeViewColumn.order_by_reference([c for c in self.main_part.columns if not c.is_join_column])
|
438
|
+
column_clauses = [c.definition() if c.is_join_column
|
439
|
+
else f"\"{self.main_part.stream_name}\"."+c.original_to_transformed()
|
440
|
+
for c in main_columns]
|
443
441
|
view_body = f"""with {all_ctes}
|
444
|
-
select {', '.join(
|
442
|
+
select {', '.join(column_clauses)}
|
445
443
|
from "{self.main_part.stream_name}" """
|
446
444
|
if len(self.main_part.joins) > 0:
|
447
445
|
join_clauses = [join.definition() for join in self.main_part.joins]
|
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
|