omnata-plugin-runtime 0.9.3__tar.gz → 0.9.4a215__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.3
3
+ Version: 0.9.4a215
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"
3
+ version = "0.9.4-a215"
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,18 @@ 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
+ if stream_schema is not None:
589
+ json_schema = JsonSchemaTopLevel.model_validate(stream_schema)
590
+ view_columns += json_schema.build_view_columns(
591
+ column_name_environment=column_name_environment,
592
+ column_name_expression=column_name_expression
593
+ )
588
594
 
589
595
  return SnowflakeViewPart(
590
596
  stream_name=stream_name,
591
597
  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
- ),
598
+ columns=view_columns,
596
599
  joins=json_schema.joins or [],
597
600
  comment=json_schema.description
598
601
  )