Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add bigquery column mode when consuming bigquery metadata #1491

Merged
merged 3 commits into from
Sep 21, 2021

Conversation

MrwanBaghdad
Copy link
Contributor

Summary of Changes

This PR intends to add the column mode when consuming column metadata for bigquery. The column mode indicates if the column is of an array type.

Tests

Added a test case for a repeated nested field

Documentation

CheckList

Make sure you have checked all steps below to ensure a timely review.

  • PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"
  • PR includes a summary of changes.
  • PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
  • In case of new functionality, my PR adds documentation that describes how to use it.
    • All the public functions and the classes in the PR contain docstrings that explain what it does

@MrwanBaghdad MrwanBaghdad requested a review from a team as a code owner September 16, 2021 11:53
@boring-cyborg boring-cyborg bot added the area:databuilder From databuilder folder label Sep 16, 2021
@MrwanBaghdad MrwanBaghdad changed the title feat:add bigquery column mode when consuming bigquery metadata feat: Add bigquery column mode when consuming bigquery metadata Sep 16, 2021
append this information as part of the column type

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>
@MrwanBaghdad MrwanBaghdad force-pushed the DCAT-182_consume_column_mode branch from 93664ea to 974a6b5 Compare September 16, 2021 12:41
Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>
@feng-tao
Copy link
Member

cc @xuan616 to take a look

@xuan616
Copy link
Member

xuan616 commented Sep 16, 2021

The predefined length of column_type in rds model should be fine with the concatenation of type and mode. I do not have any concern from rds side. Thanks

just one nit: what do you think if we use type instead of mode as prefix. cc @MrwanBaghdad

@feng-tao
Copy link
Member

@MrwanBaghdad ci fails

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>
@MrwanBaghdad
Copy link
Contributor Author

@xuan616 Thanks for the review.. I've incorporated your suggestions in the PR, please check.
@feng-tao I fixed the CI issues

@xuan616
Copy link
Member

xuan616 commented Sep 20, 2021

thanks:grinning:

Copy link
Member

@feng-tao feng-tao left a comment

Choose a reason for hiding this comment

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

thanks @xuan616 for the review!

@feng-tao feng-tao merged commit 6fc4599 into amundsen-io:main Sep 21, 2021
amommendes pushed a commit to amommendes/amundsen that referenced this pull request Jan 21, 2022
…dsen-io#1491)

* DCAT-182 Consume column mode when consumeing metadata from bigquery and
append this information as part of the column type

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>

* fix lint issues

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>

* Use the column type as prefix, instead of mode

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>
Signed-off-by: Amom Mendes <amommendes@hotmail.com>
ozandogrultan pushed a commit to deliveryhero/amundsen that referenced this pull request Apr 28, 2022
…dsen-io#1491)

* DCAT-182 Consume column mode when consumeing metadata from bigquery and
append this information as part of the column type

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>

* fix lint issues

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>

* Use the column type as prefix, instead of mode

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>
Signed-off-by: Ozan Dogrultan <ozan.dogrultan@deliveryhero.com>
zacr pushed a commit to SaltIO/amundsen that referenced this pull request May 13, 2022
…dsen-io#1491)

* DCAT-182 Consume column mode when consumeing metadata from bigquery and
append this information as part of the column type

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>

* fix lint issues

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>

* Use the column type as prefix, instead of mode

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>
hansadriaans pushed a commit to DataChefHQ/amundsen that referenced this pull request Jun 30, 2022
…dsen-io#1491)

* DCAT-182 Consume column mode when consumeing metadata from bigquery and
append this information as part of the column type

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>

* fix lint issues

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>

* Use the column type as prefix, instead of mode

Signed-off-by: MrwanBaghdad <marwan.nabil@deliveryhero.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:databuilder From databuilder folder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants