Skip to content

Fixes #6031 & #6236 -- Handle binary field & UUID when ingesting sample data - #6233

Merged
pmbrull merged 9 commits into
open-metadata:mainfrom
TeddyCr:issue-6031
Jul 21, 2022
Merged

pmbrull merged 9 commits into
open-metadata:mainfrom
TeddyCr:issue-6031

Conversation

@TeddyCr

@TeddyCr TeddyCr commented Jul 20, 2022 •

Copy link
Copy Markdown
Collaborator

Describe your changes :

Fixes #6031 and #6236 We are transforming bytes filed to hex string. Since we can't accuratly know the bytes encoding to apply some sort of decoding the safest approach is to transform that byte data type into a hex string.

We could potentially use chardet, though I see 2 drawbacks:

  1. the accuracy is relative.
  2. it adds a new dependence to the proect

Type of change :

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Frontend Preview (Screenshots) :

For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • All new and existing tests passed.

Reviewers

Ingestion: @open-metadata/ingestion

@TeddyCr
TeddyCr requested a review from a team July 20, 2022 16:09
@TeddyCr
TeddyCr temporarily deployed to cypress July 20, 2022 16:09 Inactive
@TeddyCr
TeddyCr temporarily deployed to cypress July 20, 2022 16:09 Inactive
@cypress

cypress Bot commented Jul 20, 2022 •

Copy link
Copy Markdown



Test summary

47 • 0 • 3 • 0


Run details

Project openmetadata
Status Passed
Commit 8680eb6
Started Jul 21, 2022 4:41 PM
Ended Jul 21, 2022 4:51 PM
Duration 09:11 💡
OS Linux Ubuntu - 20.04
Browser Chrome 103

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@pmbrull

pmbrull commented Jul 20, 2022 •

Copy link
Copy Markdown
Member

we might be able to define this type internally, e.g., we have an example for class HexByteString(TypeDecorator):

https://github.com/open-metadata/OpenMetadata/blob/main/ingestion/src/metadata/orm_profiler/orm/types/hex_byte_string.py

@TeddyCr

TeddyCr commented Jul 20, 2022

Copy link
Copy Markdown
Collaborator Author

Aaah, nice. Much cleaner.

@TeddyCr
TeddyCr temporarily deployed to cypress July 21, 2022 13:25 Inactive
@TeddyCr
TeddyCr temporarily deployed to cypress July 21, 2022 13:25 Inactive
@TeddyCr TeddyCr changed the title Fixes #6031 -- Handle binary field when ingesting sample data Fixes #6031 & #6236 -- Handle binary field & UUID when ingesting sample data Jul 21, 2022
@github-actions

Copy link
Copy Markdown
Contributor

The Python checkstyle failed.

Please run make py_format in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

The Python checkstyle failed.

Please run make py_format in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@TeddyCr
TeddyCr temporarily deployed to cypress July 21, 2022 15:14 Inactive
@TeddyCr
TeddyCr temporarily deployed to cypress July 21, 2022 15:14 Inactive
@TeddyCr
TeddyCr temporarily deployed to cypress July 21, 2022 16:24 Inactive
@TeddyCr
TeddyCr temporarily deployed to cypress July 21, 2022 16:24 Inactive
@sonarqubecloud

Copy link
Copy Markdown

[open-metadata-ingestion] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

57.1% 57.1% Coverage
0.0% 0.0% Duplication

@pmbrull
pmbrull merged commit 893665f into open-metadata:main Jul 21, 2022
pmbrull pushed a commit to pmbrull/OpenMetadata that referenced this pull request Jul 27, 2022
…& UUID when ingesting sample data (open-metadata#6233)

Fixes open-metadata#6031 & open-metadata#6236 -- Handle binary field & UUID when ingesting sample data (open-metadata#6233)
pmbrull pushed a commit to pmbrull/OpenMetadata that referenced this pull request Jul 27, 2022
…& UUID when ingesting sample data (open-metadata#6233)

Fixes open-metadata#6031 & open-metadata#6236 -- Handle binary field & UUID when ingesting sample data (open-metadata#6233)
pmbrull added a commit that referenced this pull request Jul 27, 2022
* Fix #5890 - Add health endpoint (#6030)

* Add health endpoint

* Replace rest_status for health

* Update message

* [ISSUE-6162] Upgrade RS SQL statement query (#6188)

* Upgrade RS SQL statement query

* Fix query, remove dupes

* [ISSUE-6162] Escape wildcards on revised RS query (#6200)

[ISSUE-6162] Escape wildcards on revised RS query (#6200)

* Remove retry in ES query (#6191)

Remove retry in ES query (#6191)

* min/max

* Fix  #6161 - kill endpoint for Airflow REST (#6244)

Fix  #6161 - kill endpoint for Airflow REST (#6244)

* Fixes #6031 & #6236 -- Handle binary field & UUID when ingesting sample data (#6233)

Fixes #6031 & #6236 -- Handle binary field & UUID when ingesting sample data (#6233)

* overwrite default sum function to add super for BQ overflow (#6252)

* [TASK-6241] Cache ES ingestion when ingesting usage (#6276)

* Cache ingestion

* Uncomment secrets manager

* Fix experiment stuff

* Fix style

* Add LRU cache

* Add tests

* Fix code smell

* [TASK-6140] Add OMeta header to SQLAlchemy-based queries (#6293)

[TASK-6140] Add OMeta header to SQLAlchemy-based queries (#6293)

* Fix #6248: Use PUT API instead of POST for tag & tagCategory (#6344)

* Fix #6248: Use PUT API instead of POST for tag & tagCategory

* Restructure yield_tag topology

* Renamed method to create_or_update

* compressed logs

* Update packages

* feat(ui): sync OMD theme with AntD components (#6148)

* feat(ui): sync omd theme with antd components

* update package.json

* fixed failing cypress

* fix layout break issue

Co-authored-by: Shailesh Parmar <[email protected]>
(cherry picked from commit 574dbce)

* Fix sql queries formatting

Co-authored-by: Francisco J. Jurado Moreno <[email protected]>
Co-authored-by: Teddy <[email protected]>
Co-authored-by: Mayur Singal <[email protected]>
Co-authored-by: Chirag Madlani <[email protected]>

This branch was previously deployed

1 inactive deployment
cypress — 8680eb6e Deployed Jul 21, 2022 by TeddyCr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BigQuery BYTES data type errors out in the profiler

3 participants