omnata-plugin-runtime 0.9.3a214__tar.gz → 0.9.4a216__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.9.3a214
3
+ Version: 0.9.4a216
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.9.3-a214"
3
+ version = "0.9.4-a216"
4
4
  description = "Classes and common runtime components for building and running Omnata Plugins"
5
5
  authors = ["James Weakley <james.weakley@omnata.com>"]
6
6
  readme = "README.md"
@@ -584,15 +584,21 @@ def normalized_view_part(
584
584
  comment="A flag to indicate which run the record was last processed in",
585
585
  )
586
586
  )
587
- json_schema = JsonSchemaTopLevel.model_validate(stream_schema)
587
+ view_columns = snowflake_columns
588
+ joins = []
589
+ if stream_schema is not None:
590
+ json_schema = JsonSchemaTopLevel.model_validate(stream_schema)
591
+ view_columns += json_schema.build_view_columns(
592
+ column_name_environment=column_name_environment,
593
+ column_name_expression=column_name_expression
594
+ )
595
+ if json_schema.joins:
596
+ joins = json_schema
588
597
 
589
598
  return SnowflakeViewPart(
590
599
  stream_name=stream_name,
591
600
  raw_table_location=raw_table_location,
592
- columns=snowflake_columns + json_schema.build_view_columns(
593
- column_name_environment=column_name_environment,
594
- column_name_expression=column_name_expression
595
- ),
596
- joins=json_schema.joins or [],
601
+ columns=view_columns,
602
+ joins=joins,
597
603
  comment=json_schema.description
598
604
  )