-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Normalization - BigQuery use json_extract_string_array
for array of simple types
#13289
Conversation
Signed-off-by: Sergey Chvalyuk <[email protected]>
Signed-off-by: Sergey Chvalyuk <[email protected]>
Signed-off-by: Sergey Chvalyuk <[email protected]>
/test connector=bases/base-normalization
Build FailedTest summary info:
|
Signed-off-by: Sergey Chvalyuk <[email protected]>
Signed-off-by: Sergey Chvalyuk <[email protected]>
/test connector=bases/base-normalization
Build PassedTest summary info:
|
This comment was marked as outdated.
This comment was marked as outdated.
json_extract_string_array
for array of simple types
Signed-off-by: Sergey Chvalyuk <[email protected]>
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.
Nice work!
Date parsing is evil - please add a test (maybe here) to show that the example from the description really does work:
before:
['"2022-11-22T01:23:45+05:00"', '"9999-12-21T01:23:45-05:00"']
after:
['2022-11-22T01:23:45+05:00', '9999-12-21T01:23:45-05:00']
There may be a similar issue with Postgres as well - #13380 |
@evantahler, we discussed with @DoNotPanicUA that this PR will be more about: Currently, base-normalization cannot extract an array of dates, I think we will implement it in the future. Provided example with dates was not very good, more better example would be: before (with strange quotes )
after (without strange quotes)
about tests, @DoNotPanicUA already wrote a test for this case: Line 287 in 1b3fe7e
|
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.
Ah, got it. The A/B Test makes sense now that I know the 'date' part isn't included
/publish connector=bases/base-normalization
|
@evantahler @grubberr |
@DoNotPanicUA ah thank for fix, I provided wrong url we still cannot parse array of dates for example |
/publish connector=bases/base-normalization
|
/publish connector=bases/base-normalization
|
I cannot PASS tests because writing to MSSQL failed on network for some reason
https://github.com/airbytehq/airbyte/runs/6825088834?check_suite_focus=true#step:17:8426 I CAN pass this test on local machine publishing without tests |
/publish connector=bases/base-normalization run-tests=false
|
Working on fixing normalization publishing here #13693 |
/publish connector=bases/base-normalization run-tests=false |
^ looks like the bot never found and linked the right action :( |
/publish connector=bases/base-normalization run-tests=false
|
Hi, guys, this change seems to break DAT test for Redshift, Snowflake, Postgres, since there is no |
Signed-off-by: Sergey Chvalyuk [email protected]
What
For array extraction use better BigQuery json function
it produce correct strings inside array
before:
after:
How
Describe the solution
Recommended reading order
x.java
y.python
🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
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
bootstrap.md
. See description and examplesdocs/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
bootstrap.md
. See description and examplesdocs/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 changesTests
Unit
Put your unit tests output here.
Integration
Put your integration tests output here.
Acceptance
Put your acceptance tests output here.