omnata-plugin-runtime 0.10.7a251__py3-none-any.whl → 0.10.7a254__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 +10 -14
- {omnata_plugin_runtime-0.10.7a251.dist-info → omnata_plugin_runtime-0.10.7a254.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.10.7a251.dist-info → omnata_plugin_runtime-0.10.7a254.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.10.7a251.dist-info → omnata_plugin_runtime-0.10.7a254.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.10.7a251.dist-info → omnata_plugin_runtime-0.10.7a254.dist-info}/WHEEL +0 -0
| @@ -242,7 +242,7 @@ class SnowflakeViewColumn(BaseModel): | |
| 242 242 | 
             
                    )
         | 
| 243 243 |  | 
| 244 244 | 
             
                @classmethod
         | 
| 245 | 
            -
                def order_by_reference(cls, | 
| 245 | 
            +
                def order_by_reference(cls,columns:List[Self]) -> List[Self]:
         | 
| 246 246 | 
             
                    """
         | 
| 247 247 | 
             
                    In some situations, column expressions may reference the alias of another column
         | 
| 248 248 | 
             
                    This is allowed in Snowflake, as long as the aliased column is defined before it's used in a later column
         | 
| @@ -253,17 +253,13 @@ class SnowflakeViewColumn(BaseModel): | |
| 253 253 | 
             
                    columns_to_move:List[Self] = []
         | 
| 254 254 | 
             
                    # Collect Omnata System columns and keep them at the front
         | 
| 255 255 | 
             
                    omnata_system_columns_start = []
         | 
| 256 | 
            -
                     | 
| 257 | 
            -
             | 
| 258 | 
            -
             | 
| 259 | 
            -
                            join_columns.remove(column)
         | 
| 256 | 
            +
                    for column in columns[:]:
         | 
| 257 | 
            +
                        if column.original_name.startswith("OMNATA_"):
         | 
| 258 | 
            +
                            columns.remove(column)
         | 
| 260 259 | 
             
                            omnata_system_columns_start.append(column)
         | 
| 261 | 
            -
                        elif column.original_name.startswith("OMNATA_"):
         | 
| 262 | 
            -
                            join_columns.remove(column)
         | 
| 263 | 
            -
                            omnata_system_columns_end.append(column)
         | 
| 264 260 |  | 
| 265 | 
            -
                    for column in  | 
| 266 | 
            -
                        for other_column in  | 
| 261 | 
            +
                    for column in columns:
         | 
| 262 | 
            +
                        for other_column in columns:
         | 
| 267 263 | 
             
                            if column==other_column:
         | 
| 268 264 | 
             
                                continue
         | 
| 269 265 | 
             
                            if f'"{column.original_name}"' in other_column.expression:
         | 
| @@ -272,9 +268,9 @@ class SnowflakeViewColumn(BaseModel): | |
| 272 268 |  | 
| 273 269 | 
             
                    # Move collected columns to the front
         | 
| 274 270 | 
             
                    for column in columns_to_move:
         | 
| 275 | 
            -
                         | 
| 276 | 
            -
                         | 
| 277 | 
            -
                    return omnata_system_columns_start +  | 
| 271 | 
            +
                        columns.remove(column)
         | 
| 272 | 
            +
                        columns.insert(0, column)
         | 
| 273 | 
            +
                    return omnata_system_columns_start + columns
         | 
| 278 274 |  | 
| 279 275 |  | 
| 280 276 | 
             
            class SnowflakeViewJoin(BaseModel):
         | 
| @@ -406,7 +402,7 @@ class SnowflakeViewPart(BaseModel): | |
| 406 402 | 
             
                    # the outer view definition has all of the column names and comments, but with the direct columns
         | 
| 407 403 | 
             
                    # first and the join columns last, same as they are ordered in the inner query
         | 
| 408 404 | 
             
                    return [
         | 
| 409 | 
            -
                        c.name_with_comment(binding_list) for c in  | 
| 405 | 
            +
                        c.name_with_comment(binding_list) for c in self.columns
         | 
| 410 406 | 
             
                    ]
         | 
| 411 407 |  | 
| 412 408 | 
             
                def cte_text(self,original_name: bool = False) -> str:
         | 
    
        {omnata_plugin_runtime-0.10.7a251.dist-info → omnata_plugin_runtime-0.10.7a254.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=0R7q0cKKcca_TapF7xIibsTXcg756u_LJGvlQ_-OlDI,31128
         | 
| 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.7a254.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
         | 
| 11 | 
            +
            omnata_plugin_runtime-0.10.7a254.dist-info/METADATA,sha256=U4t4oT4Fx7nbiH0sItG-DZkluodARR0fMND_VSwrqlA,2211
         | 
| 12 | 
            +
            omnata_plugin_runtime-0.10.7a254.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
         | 
| 13 | 
            +
            omnata_plugin_runtime-0.10.7a254.dist-info/RECORD,,
         | 
    
        {omnata_plugin_runtime-0.10.7a251.dist-info → omnata_plugin_runtime-0.10.7a254.dist-info}/LICENSE
    RENAMED
    
    | 
            File without changes
         | 
    
        {omnata_plugin_runtime-0.10.7a251.dist-info → omnata_plugin_runtime-0.10.7a254.dist-info}/WHEEL
    RENAMED
    
    | 
            File without changes
         |