omnata-plugin-runtime 0.10.8a256__py3-none-any.whl → 0.10.9a258__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.
- omnata_plugin_runtime/json_schema.py +21 -7
- {omnata_plugin_runtime-0.10.8a256.dist-info → omnata_plugin_runtime-0.10.9a258.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.10.8a256.dist-info → omnata_plugin_runtime-0.10.9a258.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.10.8a256.dist-info → omnata_plugin_runtime-0.10.9a258.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.10.8a256.dist-info → omnata_plugin_runtime-0.10.9a258.dist-info}/WHEEL +0 -0
@@ -173,10 +173,22 @@ class SnowflakeViewColumn(BaseModel):
|
|
173
173
|
)
|
174
174
|
|
175
175
|
def __repr__(self) -> str:
|
176
|
-
return "SnowflakeViewColumn(
|
176
|
+
return """SnowflakeViewColumn(
|
177
|
+
name=%r,
|
178
|
+
original_name=%r,
|
179
|
+
expression=%r,
|
180
|
+
comment=%r,
|
181
|
+
is_join_column=%r,
|
182
|
+
required_stream_names=%r,
|
183
|
+
referenced_columns=%r)
|
184
|
+
""" % (
|
177
185
|
self.name,
|
178
|
-
self.
|
186
|
+
self.original_name,
|
187
|
+
self.expression,
|
179
188
|
self.comment,
|
189
|
+
self.is_join_column,
|
190
|
+
self.required_stream_names,
|
191
|
+
self.referenced_columns
|
180
192
|
)
|
181
193
|
|
182
194
|
def definition(self,original_name:bool = False) -> str:
|
@@ -555,7 +567,8 @@ def prune(view_part:SnowflakeViewPart,joined_parts:List[SnowflakeViewPart]) -> b
|
|
555
567
|
return True
|
556
568
|
else:
|
557
569
|
# no columns were removed, but we need to check if the columns that are referenced are not themselves referencing other missing columns
|
558
|
-
|
570
|
+
if part != view_part:
|
571
|
+
return prune(part,joined_parts)
|
559
572
|
|
560
573
|
return False
|
561
574
|
|
@@ -613,7 +626,7 @@ class JsonSchemaTopLevel(BaseModel):
|
|
613
626
|
- current_comment_path is the same length as above, and contains any "description" values found on the way down
|
614
627
|
"""
|
615
628
|
json_property = JsonSchemaProperty.model_validate(property_value)
|
616
|
-
|
629
|
+
children = []
|
617
630
|
if json_property.type:
|
618
631
|
if json_property.type == "object":
|
619
632
|
# TODO: make this depth configurable on the sync
|
@@ -629,8 +642,7 @@ class JsonSchemaTopLevel(BaseModel):
|
|
629
642
|
)
|
630
643
|
for child_property_name, child_property_value in json_property.properties.items()
|
631
644
|
]
|
632
|
-
|
633
|
-
|
645
|
+
children = [item for sublist in children for item in sublist]
|
634
646
|
current_field_name_path = current_field_name_path + [property_name]
|
635
647
|
current_comment_path = current_comment_path + [
|
636
648
|
json_property.description or ""
|
@@ -638,7 +650,7 @@ class JsonSchemaTopLevel(BaseModel):
|
|
638
650
|
# remove empty strings from current_comment_path
|
639
651
|
current_comment_path = [c for c in current_comment_path if c]
|
640
652
|
|
641
|
-
|
653
|
+
columns = [SnowflakeViewColumn.from_json_schema_property(
|
642
654
|
column_name="_".join(current_field_name_path),
|
643
655
|
comment=" -> ".join(current_comment_path),
|
644
656
|
variant_path=":".join([f'"{p}"' for p in current_field_name_path if p]),
|
@@ -646,6 +658,8 @@ class JsonSchemaTopLevel(BaseModel):
|
|
646
658
|
column_name_environment=column_name_environment,
|
647
659
|
column_name_expression=column_name_expression
|
648
660
|
)]
|
661
|
+
columns.extend(children)
|
662
|
+
return columns
|
649
663
|
|
650
664
|
|
651
665
|
def normalized_view_part(
|
{omnata_plugin_runtime-0.10.8a256.dist-info → omnata_plugin_runtime-0.10.9a258.dist-info}/RECORD
RENAMED
@@ -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=0rfIGv8rCu8OwL7m-VOXIBjd05iyaBWRdt2h9o6scwo,46754
|
4
4
|
omnata_plugin_runtime/forms.py,sha256=9YHJ_T17lT-rwyDaUg_0yj_YMPda4DRCw_wrvf8hE0E,19964
|
5
|
-
omnata_plugin_runtime/json_schema.py,sha256=
|
5
|
+
omnata_plugin_runtime/json_schema.py,sha256=Ch2tFcTDP16aZ3xFGSbnW7LVsbzIHNQFEhH9z2rHoTE,34417
|
6
6
|
omnata_plugin_runtime/logging.py,sha256=WBuZt8lF9E5oFWM4KYQbE8dDJ_HctJ1pN3BHwU6rcd0,4461
|
7
7
|
omnata_plugin_runtime/omnata_plugin.py,sha256=M0b6f9lKKEoEI0zf-ZwZcIPKPQTmHTIMhvcrBc94Mhg,133278
|
8
8
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=iqGl8_nEEnPGKg3Aem4YLSQ6d5xS3ju5gq8MJbx6sCA,31968
|
9
9
|
omnata_plugin_runtime/rate_limiting.py,sha256=qpr5esU4Ks8hMzuMpSR3gLFdor2ZUXYWCjmsQH_K6lQ,25882
|
10
|
-
omnata_plugin_runtime-0.10.
|
11
|
-
omnata_plugin_runtime-0.10.
|
12
|
-
omnata_plugin_runtime-0.10.
|
13
|
-
omnata_plugin_runtime-0.10.
|
10
|
+
omnata_plugin_runtime-0.10.9a258.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
|
11
|
+
omnata_plugin_runtime-0.10.9a258.dist-info/METADATA,sha256=G3vOesOSgrV7I3aYFpmLohE7DgN-0Kdd6iolWySP7_Y,2211
|
12
|
+
omnata_plugin_runtime-0.10.9a258.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
13
|
+
omnata_plugin_runtime-0.10.9a258.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.10.8a256.dist-info → omnata_plugin_runtime-0.10.9a258.dist-info}/LICENSE
RENAMED
File without changes
|
{omnata_plugin_runtime-0.10.8a256.dist-info → omnata_plugin_runtime-0.10.9a258.dist-info}/WHEEL
RENAMED
File without changes
|