omnata-plugin-runtime 0.10.6a236__py3-none-any.whl → 0.10.6a238__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 +8 -3
- {omnata_plugin_runtime-0.10.6a236.dist-info → omnata_plugin_runtime-0.10.6a238.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.10.6a236.dist-info → omnata_plugin_runtime-0.10.6a238.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.10.6a236.dist-info → omnata_plugin_runtime-0.10.6a238.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.10.6a236.dist-info → omnata_plugin_runtime-0.10.6a238.dist-info}/WHEEL +0 -0
@@ -181,6 +181,9 @@ class SnowflakeViewColumn(BaseModel):
|
|
181
181
|
if original_name:
|
182
182
|
return f'{self.expression} as "{self.original_name}"'
|
183
183
|
return f'{self.expression} as "{self.name}"'
|
184
|
+
|
185
|
+
def original_to_transformed(self) -> str:
|
186
|
+
return f'"{self.original_name}" as "{self.name}"'
|
184
187
|
|
185
188
|
def name_with_comment(self,binding_list:Optional[List[Any]] = None) -> str:
|
186
189
|
"""
|
@@ -250,7 +253,9 @@ class SnowflakeViewColumn(BaseModel):
|
|
250
253
|
columns_to_move:List[Self] = []
|
251
254
|
for column in join_columns:
|
252
255
|
for other_column in join_columns:
|
253
|
-
if f'"{column.
|
256
|
+
if f'"{column.original_name}"' in other_column.expression:
|
257
|
+
if column.original_name != column.name:
|
258
|
+
other_column.expression = other_column.expression.replace(f'"{column.original_name}"',f'"{column.name}"')
|
254
259
|
if column not in columns_to_move:
|
255
260
|
columns_to_move.append(column)
|
256
261
|
|
@@ -426,8 +431,8 @@ class SnowflakeViewParts(BaseModel):
|
|
426
431
|
all_ctes = "\n,".join(ctes)
|
427
432
|
direct_columns = self.main_part.direct_columns()
|
428
433
|
join_columns = self.main_part.join_columns()
|
429
|
-
direct_column_clauses = [c.
|
430
|
-
join_column_clauses = [c.definition(
|
434
|
+
direct_column_clauses = [f"\"{self.main_part.stream_name}\"."+c.original_to_transformed() for c in direct_columns]
|
435
|
+
join_column_clauses = [c.definition() for c in join_columns]
|
431
436
|
# the joined columns may reference the direct columns, so we need to order them correctly
|
432
437
|
final_column_clauses = direct_column_clauses + join_column_clauses
|
433
438
|
view_body = f"""with {all_ctes}
|
{omnata_plugin_runtime-0.10.6a236.dist-info → omnata_plugin_runtime-0.10.6a238.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=fpSyBr3Dr7GNdil88915VtMwRy5pexkGCRBk7BLFpPs,46527
|
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=uBvYaHICblIHAvAfvwII6_7AJvk5VDqwDgeKaUmsEHM,30060
|
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.6a238.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
|
11
|
+
omnata_plugin_runtime-0.10.6a238.dist-info/METADATA,sha256=EkDEkG-Bcu_lOaANHXE-zElIRePGwqPU075TQOdaSeI,2211
|
12
|
+
omnata_plugin_runtime-0.10.6a238.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
13
|
+
omnata_plugin_runtime-0.10.6a238.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.10.6a236.dist-info → omnata_plugin_runtime-0.10.6a238.dist-info}/LICENSE
RENAMED
File without changes
|
{omnata_plugin_runtime-0.10.6a236.dist-info → omnata_plugin_runtime-0.10.6a238.dist-info}/WHEEL
RENAMED
File without changes
|