omnata-plugin-runtime 0.10.7a250__py3-none-any.whl → 0.10.7a253__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 +13 -4
- {omnata_plugin_runtime-0.10.7a250.dist-info → omnata_plugin_runtime-0.10.7a253.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.10.7a250.dist-info → omnata_plugin_runtime-0.10.7a253.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.10.7a250.dist-info → omnata_plugin_runtime-0.10.7a253.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.10.7a250.dist-info → omnata_plugin_runtime-0.10.7a253.dist-info}/WHEEL +0 -0
@@ -264,6 +264,8 @@ class SnowflakeViewColumn(BaseModel):
|
|
264
264
|
|
265
265
|
for column in join_columns:
|
266
266
|
for other_column in join_columns:
|
267
|
+
if column==other_column:
|
268
|
+
continue
|
267
269
|
if f'"{column.original_name}"' in other_column.expression:
|
268
270
|
if column not in columns_to_move:
|
269
271
|
columns_to_move.append(column)
|
@@ -404,7 +406,7 @@ class SnowflakeViewPart(BaseModel):
|
|
404
406
|
# the outer view definition has all of the column names and comments, but with the direct columns
|
405
407
|
# first and the join columns last, same as they are ordered in the inner query
|
406
408
|
return [
|
407
|
-
c.name_with_comment(binding_list) for c in
|
409
|
+
c.name_with_comment(binding_list) for c in self.columns
|
408
410
|
]
|
409
411
|
|
410
412
|
def cte_text(self,original_name: bool = False) -> str:
|
@@ -454,8 +456,7 @@ class SnowflakeViewParts(BaseModel):
|
|
454
456
|
|
455
457
|
ctes.append(final_cte)
|
456
458
|
all_ctes = "\n,".join(ctes)
|
457
|
-
main_columns:List[SnowflakeViewColumn] =
|
458
|
-
self.main_part.join_columns())
|
459
|
+
main_columns:List[SnowflakeViewColumn] = self.main_part.columns
|
459
460
|
column_clauses = [f"\"OMNATA_FINAL_CTE\"."+c.original_to_transformed()
|
460
461
|
for c in main_columns]
|
461
462
|
|
@@ -675,7 +676,15 @@ def normalized_view_part(
|
|
675
676
|
if json_schema.joins:
|
676
677
|
joins = json_schema.joins
|
677
678
|
comment = json_schema.description
|
678
|
-
|
679
|
+
|
680
|
+
direct_view_columns = [c for c in view_columns if c.is_join_column]
|
681
|
+
join_view_columns = [c for c in view_columns if not c.is_join_column]
|
682
|
+
# The final order of view columns is:
|
683
|
+
#- APP_IDENTIFIER
|
684
|
+
#- Direct and joined columns, ordered so that columns that reference other columns are defined after the columns they reference
|
685
|
+
#- OMNATA_RETRIEVE_DATE, OMNATA_RAW_RECORD, OMNATA_IS_DELETED, OMNATA_RUN_ID
|
686
|
+
view_columns = SnowflakeViewColumn.order_by_reference(direct_view_columns +
|
687
|
+
join_view_columns)
|
679
688
|
return SnowflakeViewPart(
|
680
689
|
stream_name=stream_name,
|
681
690
|
raw_table_location=raw_table_location,
|
{omnata_plugin_runtime-0.10.7a250.dist-info → omnata_plugin_runtime-0.10.7a253.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=uwNE3-Rq5y0EpMsAcSTUQgTe8Ti-ePga64Xeh7IvD_E,31400
|
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.7a253.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
|
11
|
+
omnata_plugin_runtime-0.10.7a253.dist-info/METADATA,sha256=e1U9BxIb68KmvKxvNFcAMMcBGjgPGa2GFT_Hns-pw2U,2211
|
12
|
+
omnata_plugin_runtime-0.10.7a253.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
13
|
+
omnata_plugin_runtime-0.10.7a253.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.10.7a250.dist-info → omnata_plugin_runtime-0.10.7a253.dist-info}/LICENSE
RENAMED
File without changes
|
{omnata_plugin_runtime-0.10.7a250.dist-info → omnata_plugin_runtime-0.10.7a253.dist-info}/WHEEL
RENAMED
File without changes
|