Skip to content

Commit

Permalink
Normalization: check for ref type existence (#22161)
Browse files Browse the repository at this point in the history
* check for ref type existence

* version bump

* bump normalization version

* format
  • Loading branch information
edgao committed Jan 31, 2023
1 parent c1dee7e commit dbe56d6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
icon: bigquery.svg
normalizationConfig:
normalizationRepository: airbyte/normalization
normalizationTag: 0.3.0
normalizationTag: 0.3.1
normalizationIntegrationType: bigquery
supportsDbt: true
resourceRequirements:
Expand Down Expand Up @@ -91,7 +91,7 @@
releaseStage: alpha
normalizationConfig:
normalizationRepository: airbyte/normalization-clickhouse
normalizationTag: 0.3.0
normalizationTag: 0.3.1
normalizationIntegrationType: clickhouse
supportsDbt: true
- name: Cloudflare R2
Expand Down Expand Up @@ -213,7 +213,7 @@
releaseStage: alpha
normalizationConfig:
normalizationRepository: airbyte/normalization-mssql
normalizationTag: 0.3.0
normalizationTag: 0.3.1
normalizationIntegrationType: mssql
supportsDbt: true
- name: MeiliSearch
Expand All @@ -239,7 +239,7 @@
releaseStage: alpha
normalizationConfig:
normalizationRepository: airbyte/normalization-mysql
normalizationTag: 0.3.0
normalizationTag: 0.3.1
normalizationIntegrationType: mysql
supportsDbt: true
- name: Oracle
Expand All @@ -251,7 +251,7 @@
releaseStage: alpha
normalizationConfig:
normalizationRepository: airbyte/normalization-oracle
normalizationTag: 0.3.0
normalizationTag: 0.3.1
normalizationIntegrationType: oracle
supportsDbt: true
- name: Postgres
Expand All @@ -263,7 +263,7 @@
releaseStage: alpha
normalizationConfig:
normalizationRepository: airbyte/normalization
normalizationTag: 0.3.0
normalizationTag: 0.3.1
normalizationIntegrationType: postgres
supportsDbt: true
- name: Pulsar
Expand Down Expand Up @@ -295,7 +295,7 @@
icon: redshift.svg
normalizationConfig:
normalizationRepository: airbyte/normalization-redshift
normalizationTag: 0.3.0
normalizationTag: 0.3.1
normalizationIntegrationType: redshift
supportsDbt: true
resourceRequirements:
Expand Down Expand Up @@ -353,7 +353,7 @@
icon: snowflake.svg
normalizationConfig:
normalizationRepository: airbyte/normalization-snowflake
normalizationTag: 0.3.0
normalizationTag: 0.3.1
normalizationIntegrationType: snowflake
supportsDbt: true
resourceRequirements:
Expand Down Expand Up @@ -407,7 +407,7 @@
releaseStage: alpha
normalizationConfig:
normalizationRepository: airbyte/normalization-tidb
normalizationTag: 0.3.0
normalizationTag: 0.3.1
normalizationIntegrationType: tidb
supportsDbt: true
- name: Typesense
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/bases/base-normalization/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ WORKDIR /airbyte
ENV AIRBYTE_ENTRYPOINT "/airbyte/entrypoint.sh"
ENTRYPOINT ["/airbyte/entrypoint.sh"]

LABEL io.airbyte.version=0.3.0
LABEL io.airbyte.version=0.3.1
LABEL io.airbyte.name=airbyte/normalization
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def is_simple_property(definition: dict) -> bool:
def is_combining_node(properties: dict) -> Set[str]:
# this case appears when we have analog of old protocol like id: {type:[number, string]} and it's handled separately
if data_type.ONE_OF_VAR_NAME in properties and any(
data_type.WELL_KNOWN_TYPE_VAR_NAME in option[data_type.REF_TYPE_VAR_NAME] for option in properties[data_type.ONE_OF_VAR_NAME]
data_type.REF_TYPE_VAR_NAME in option and data_type.WELL_KNOWN_TYPE_VAR_NAME in option[data_type.REF_TYPE_VAR_NAME]
for option in properties[data_type.ONE_OF_VAR_NAME]
):
return set()
else:
Expand Down
1 change: 1 addition & 0 deletions docs/understanding-airbyte/basic-normalization.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ Therefore, in order to "upgrade" to the desired normalization version, you need

| Airbyte Version | Normalization Version | Date | Pull Request | Subject |
|:----------------|:----------------------|:-----------|:-------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------|
| | 0.3.1 | 2023-01-31 | [\#22161](https://github.com/airbytehq/airbyte/pull/22161) | Fix handling for combined primitive types |
| | 0.3.0 | 2023-01-30 | [\#19721](https://github.com/airbytehq/airbyte/pull/19721) | Update normalization to airbyte-protocol v1.0.0 |
| | 0.2.25 | 2022-12-05 | [\#19573](https://github.com/airbytehq/airbyte/pull/19573) | Update Clickhouse dbt version |
| | 0.2.24 | 2022-11-01 | [\#18015](https://github.com/airbytehq/airbyte/pull/18015) | Add a drop table hook that drops *_scd tables after overwrite/reset |
Expand Down

0 comments on commit dbe56d6

Please sign in to comment.