-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
🐛 Correct unnest_column_name
conflict with table_alias
#5467
🐛 Correct unnest_column_name
conflict with table_alias
#5467
Conversation
/test connector=bases/base-normalization
|
airbyte-integrations/bases/base-normalization/integration_tests/test_normalization.py
Outdated
Show resolved
Hide resolved
...ions/bases/base-normalization/dbt-project-template/macros/cross_db_utils/json_operations.sql
Outdated
Show resolved
Hide resolved
if "unnested_column_value" in json_column_name and unnest_dest_alias: | ||
table_alias = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChristopheDuong wdyt?
/test connector=bases/base-normalization
|
{{ json_extract('', unnested_column_value('children'), ['owner'], ['owner']) }} as {{ adapter.quote('owner') }}, | ||
_airbyte_emitted_at | ||
from {{ ref('unnest_alias') }} as table_alias | ||
{{ cross_join_unnest('unnest_alias', 'children') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChristopheDuong the new stream to test the condition
/test connector=bases/base-normalization
|
/publish connector=bases/base-normalization
|
unnest_column_name
conflict with table_alias
* add unnest_column case conflict * add redshift files * format * change logic * change logic for unnest * bump normalization version * add files * add stream test unnest_alias
What
Closes #5462
How
Describe the solution
Recommended reading order
x.java
y.python
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
docs/SUMMARY.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changes