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

Handle special characters in columns names #3133

Merged
merged 4 commits into from
Apr 30, 2021

Conversation

ChristopheDuong
Copy link
Contributor

@ChristopheDuong ChristopheDuong commented Apr 29, 2021

What

Closes #3128

How

JsonPath expressions can use the dot–notation
$.store.book[0].title
or the bracket–notation
$['store']['book'][0]['title']

jsonpath specs

It seems the second option is more tolerant to special characters on BQ.

Tweak integration tests to include a column with special characters

Pre-merge Checklist

  • Run integration tests
  • Publish Docker images

Recommended reading order

  1. airbyte-integrations/bases/base-normalization/dbt-project-template/macros/cross_db_utils/json_operations.sql
  2. the rest

@ChristopheDuong
Copy link
Contributor Author

ChristopheDuong commented Apr 30, 2021

/test connector=bases/base-normalization

🕑 bases/base-normalization https://github.com/airbytehq/airbyte/actions/runs/798841356
✅ bases/base-normalization https://github.com/airbytehq/airbyte/actions/runs/798841356

@ChristopheDuong ChristopheDuong merged commit 0265012 into master Apr 30, 2021
@ChristopheDuong ChristopheDuong deleted the chris/special-characters-columns branch April 30, 2021 09:59
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.

Normalization fails when special characters such as & or @ is/are present in column-names in CSV files
2 participants