Skip to content

Conversation

@edgao
Copy link
Contributor

@edgao edgao commented Jan 31, 2023

fix this error

2023-01-31 18:22:30 normalization > Traceback (most recent call last): 2023-01-31 18:22:30 normalization > File "/usr/local/bin/transform-catalog", line 8, in <module> 2023-01-31 18:22:30 normalization > sys.exit(main()) 2023-01-31 18:22:30 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/transform.py", line 104, in main 2023-01-31 18:22:30 normalization > TransformCatalog().run(args) 2023-01-31 18:22:30 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/transform.py", line 36, in run 2023-01-31 18:22:30 normalization > self.process_catalog() 2023-01-31 18:22:30 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/transform.py", line 64, in process_catalog 2023-01-31 18:22:30 normalization > processor.process(catalog_file=catalog_file, json_column_name=json_col, default_schema=schema) 2023-01-31 18:22:30 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/catalog_processor.py", line 64, in process 2023-01-31 18:22:30 normalization > stream_processor.collect_table_names() 2023-01-31 18:22:30 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/stream_processor.py", line 228, in collect_table_names 2023-01-31 18:22:30 normalization > child.collect_table_names() 2023-01-31 18:22:30 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/stream_processor.py", line 227, in collect_table_names 2023-01-31 18:22:30 normalization > for child in self.find_children_streams(self.from_table, column_names): 2023-01-31 18:22:30 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/stream_processor.py", line 361, in find_children_streams 2023-01-31 18:22:30 normalization > elif is_combining_node(properties[field]): 2023-01-31 18:22:30 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/utils.py", line 120, in is_combining_node 2023-01-31 18:22:30 normalization > if data_type.ONE_OF_VAR_NAME in properties and any( 2023-01-31 18:22:30 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/utils.py", line 121, in <genexpr> 2023-01-31 18:22:30 normalization > 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] 2023-01-31 18:22:30 normalization > KeyError: '$ref' 
@github-actions
Copy link
Contributor

github-actions bot commented Jan 31, 2023

Affected Connector Report

NOTE ⚠️ Changes in this PR affect the following connectors. Make sure to do the following as needed:

  • Run integration tests
  • Bump connector or module version
  • Add changelog
  • Publish the new version

✅ Sources (0)

Connector Version Changelog Publish
  • See "Actionable Items" below for how to resolve warnings and errors.

❌ Destinations (16)

Connector Version Changelog Publish
destination-bigquery 1.2.13
destination-bigquery-denormalized 1.2.12
(diff seed version)
destination-clickhouse 0.2.2
(changelog missing)
destination-clickhouse-strict-encrypt 0.2.2 🔵
(ignored)
🔵
(ignored)
destination-jdbc 0.3.14 🔵
(ignored)
🔵
(ignored)
destination-mssql 0.1.22
destination-mssql-strict-encrypt 0.1.22 🔵
(ignored)
🔵
(ignored)
destination-mysql 0.1.20
destination-mysql-strict-encrypt 0.1.21
(mismatch: 0.1.20)
🔵
(ignored)
🔵
(ignored)
destination-oracle 0.1.19
destination-oracle-strict-encrypt 0.1.19 🔵
(ignored)
🔵
(ignored)
destination-postgres 0.3.26
destination-postgres-strict-encrypt 0.3.26 🔵
(ignored)
🔵
(ignored)
destination-redshift 0.3.56
destination-snowflake 0.4.47
destination-tidb 0.1.0
  • See "Actionable Items" below for how to resolve warnings and errors.

👀 Other Modules (1)

  • base-normalization

Actionable Items

(click to expand)

Category Status Actionable Item
Version
mismatch
The version of the connector is different from its normal variant. Please bump the version of the connector.

doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.
Changelog
doc not found
The connector does not seem to have a documentation file. This can be normal (e.g. basic connector like source-jdbc is not published or documented). Please double-check to make sure that it is not a bug.

changelog missing
There is no chnagelog for the current version of the connector. If you are the author of the current version, please add a changelog.
Publish
not in seed
The connector is not in the seed file (e.g. source_definitions.yaml), so its publication status cannot be checked. This can be normal (e.g. some connectors are cloud-specific, and only listed in the cloud seed file). Please double-check to make sure that it is not a bug.

diff seed version
The connector exists in the seed file, but the latest version is not listed there. This usually means that the latest version is not published. Please use the /publish command to publish the latest version.
@edgao edgao marked this pull request as ready for review January 31, 2023 18:40
@edgao edgao requested a review from a team as a code owner January 31, 2023 18:40
@octavia-squidington-iv octavia-squidington-iv added the area/documentation Improvements or additions to documentation label Jan 31, 2023
@edgao
Copy link
Contributor Author

edgao commented Jan 31, 2023

skipping tests for urgent publish

@edgao
Copy link
Contributor Author

edgao commented Jan 31, 2023

/publish connector=bases/base-normalization run-tests=false

🕑 Publishing the following connectors:
bases/base-normalization
https://github.com/airbytehq/airbyte/actions/runs/4057282055


Connector Did it publish? Were definitions generated?
bases/base-normalization

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@edgao edgao temporarily deployed to more-secrets January 31, 2023 18:44 — with GitHub Actions Inactive
@edgao edgao temporarily deployed to more-secrets January 31, 2023 18:44 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

Airbyte Code Coverage

There is no coverage information present for the Files changed

Total Project Coverage 24.51%
@edgao edgao temporarily deployed to more-secrets January 31, 2023 18:55 — with GitHub Actions Inactive
@edgao edgao temporarily deployed to more-secrets January 31, 2023 18:55 — with GitHub Actions Inactive
@edgao edgao enabled auto-merge (squash) January 31, 2023 18:57
)


def is_combining_node(properties: dict) -> Set[str]:
Copy link
Contributor

@jbfbell jbfbell Jan 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some really unfair comments here so sorry in advance (none are blocking):

  • is_combining_node reads like it should be a boolean, but it returns a set?
  • As a new observer, I understand what its doing (checks a condition and returns an empty or populated set) but i have no idea why its doing that or what a "combining node" is, some docs on the method could be useful here
  • is there a test for this?
  • I don't feel too strongly about this but the return values could be static but this is a super nitpick
@edgao edgao disabled auto-merge January 31, 2023 19:14
@edgao edgao merged commit dbe56d6 into master Jan 31, 2023
@edgao edgao deleted the edgao/normalizatoin-fix branch January 31, 2023 19:33
edgao added a commit that referenced this pull request Feb 2, 2023
edgao added a commit that referenced this pull request Feb 6, 2023
* Revert "Normalization: handle non-object top-level schemas; treat binary data as string (#22165)" This reverts commit 8276d03. * Revert "Normalization: check for ref type existence (#22161)" This reverts commit dbe56d6. * Revert "🎉Updated normalization to handle new datatypes (#19721)" This reverts commit c1d7736. * revert dest definitions * also dockerfile * re-add to changelog * add comment in dockerfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Improvements or additions to documentation normalization

5 participants