omnata-plugin-runtime 0.10.27a285__py3-none-any.whl → 0.10.28__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 +20 -1
- {omnata_plugin_runtime-0.10.27a285.dist-info → omnata_plugin_runtime-0.10.28.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.10.27a285.dist-info → omnata_plugin_runtime-0.10.28.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.10.27a285.dist-info → omnata_plugin_runtime-0.10.28.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.10.27a285.dist-info → omnata_plugin_runtime-0.10.28.dist-info}/WHEEL +0 -0
@@ -289,10 +289,29 @@ class SnowflakeViewColumn(BaseModel):
|
|
289
289
|
continue
|
290
290
|
if column.original_name in (other_column.referenced_columns or {}).get(current_stream_name,[]):
|
291
291
|
if column not in columns_to_move:
|
292
|
+
logger.debug(
|
293
|
+
f"Column {column.original_name} references {other_column.original_name}, moving it to the front"
|
294
|
+
)
|
292
295
|
columns_to_move.append(column)
|
296
|
+
# we need to do another pass just on columns_to_move, because they may reference each other
|
297
|
+
# if any do, they go to the front, otherwise they are appended
|
298
|
+
columns_to_move_final:List[Self] = []
|
299
|
+
for column in columns_to_move:
|
300
|
+
for other_column in columns_to_move:
|
301
|
+
if column==other_column:
|
302
|
+
continue
|
303
|
+
if column.original_name in (other_column.referenced_columns or {}).get(current_stream_name,[]):
|
304
|
+
if column not in columns_to_move_final:
|
305
|
+
logger.debug(
|
306
|
+
f"Second pass: Column {column.original_name} is referenced by {other_column.original_name}, moving it to the front"
|
307
|
+
)
|
308
|
+
columns_to_move_final.insert(0, column)
|
309
|
+
continue
|
310
|
+
if column not in columns_to_move_final:
|
311
|
+
columns_to_move_final.append(column)
|
293
312
|
|
294
313
|
# Move collected columns to the front
|
295
|
-
for column in
|
314
|
+
for column in columns_to_move_final:
|
296
315
|
columns.remove(column)
|
297
316
|
columns.insert(0, column)
|
298
317
|
return omnata_system_columns_start + columns
|
{omnata_plugin_runtime-0.10.27a285.dist-info → omnata_plugin_runtime-0.10.28.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=ud3O9R03BbUjGUJDVpGbnADqKw5oLVy65EQN1g6gmKg,46811
|
4
4
|
omnata_plugin_runtime/forms.py,sha256=Lrbr3otsFDrvHWJw7v-slsW4PvEHJ6BG1Yl8oaJfiDo,20529
|
5
|
-
omnata_plugin_runtime/json_schema.py,sha256=
|
5
|
+
omnata_plugin_runtime/json_schema.py,sha256=xcLTFZ07XvPKrVP3Nu2zNRaI8dfHL9BG8txwMtIuvds,48348
|
6
6
|
omnata_plugin_runtime/logging.py,sha256=WBuZt8lF9E5oFWM4KYQbE8dDJ_HctJ1pN3BHwU6rcd0,4461
|
7
7
|
omnata_plugin_runtime/omnata_plugin.py,sha256=RnUEO_iPFqJEaixLDFfrzCC-HmEAtEIT_lgfgNyjBUs,134532
|
8
8
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=SlpI3VF3EdTGFCr9wDD0kV4v6B6bHfNDFdC3slU2y8Y,32241
|
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.28.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
|
11
|
+
omnata_plugin_runtime-0.10.28.dist-info/METADATA,sha256=mYYfkbwf6PW_XVT3-hxh9Ilt0TDjMRFQ1JIWj8u1qxo,2208
|
12
|
+
omnata_plugin_runtime-0.10.28.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
13
|
+
omnata_plugin_runtime-0.10.28.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.10.27a285.dist-info → omnata_plugin_runtime-0.10.28.dist-info}/LICENSE
RENAMED
File without changes
|
{omnata_plugin_runtime-0.10.27a285.dist-info → omnata_plugin_runtime-0.10.28.dist-info}/WHEEL
RENAMED
File without changes
|