-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
🎉 New Source: Faker #11738
🎉 New Source: Faker #11738
Conversation
We learned #11743 along the way |
afcb62d
to
03f66af
Compare
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.
I'd love some help with the callouts below (mostly me learning 🐍) and with the failing SAT test (see description).
The SAT test is failing, but I'm not really sure on what.
E pydantic.error_wrappers.ValidationError: 3 validation errors for AirbyteRecordMessage
E stream
E field required (type=value_error.missing)
E data
E field required (type=value_error.missing)
E emitted_at
E field required (type=value_error.missing)
Seems to indicate that those properties of the record are missing, but:
{"type": "RECORD", "record": {"stream": "Users", "data": {"job": "Musician", "company": "Williams-Sheppard", "ssn": "498-52-4970", "residence": "Unit 5938 Box 2421\nDPO AP 33335", "current_location": [52.958961, 143.143712], "blood_group": "B+", "website": ["http://www.rivera.com/", "http://grimes-green.net/", "http://www.larsen.com/"], "username": "leeashley", "name": "Gary Cross", "sex": "M", "address": "711 Golden Overpass\nWest Andreaville, MA 71317", "mail": "[email protected]", "birthdate": "1945-06-05", "id": 1, "created_at": "2022-04-12T17:32:21.905904", "updated_at": "2022-04-12T17:32:21.905904"}, "emitted_at": 1649809941000}}
airbyte-integrations/connectors/source-faker/integration_tests/expected_records.txt
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-faker/unit_tests/unit_test.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-faker/unit_tests/unit_test.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-faker/unit_tests/unit_test.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-faker/source_faker/source.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-faker/unit_tests/unit_test.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-faker/unit_tests/unit_test.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-faker/unit_tests/unit_test.py
Outdated
Show resolved
Hide resolved
Thanks to @girarda and @sherifnada the tests are passing! |
/test connector=connectors/source-faker
|
/test connector=connectors/source-faker
|
/test connector=connectors/source-faker
|
Codecov Report
@@ Coverage Diff @@
## master #11738 +/- ##
=========================================
Coverage ? 96.00%
=========================================
Files ? 2
Lines ? 50
Branches ? 0
=========================================
Hits ? 48
Misses ? 2
Partials ? 0 Continue to review full report at Codecov.
|
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.
Awesome, first source!!!
Nothing major on my review, mostly just nit comments and one point on repeating index numbers on incremental syncs.
airbyte-integrations/connectors/source-faker/integration_tests/acceptance.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-faker/source_faker/source.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-faker/source_faker/source.py
Outdated
Show resolved
Hide resolved
airbyte-integrations/connectors/source-faker/source_faker/source.py
Outdated
Show resolved
Hide resolved
/test connector=connectors/source-faker
|
/test connector=connectors/source-faker
|
/test connector=connectors/source-faker
|
…/acceptance.py Co-authored-by: George Claireaux <[email protected]>
80c00d4
to
f461ef1
Compare
/publish connector=connectors/source-faker
|
* Faker WIP * Update catalog to handle dates better * Adding unit tests for faker source * WIP - tests mostly passing * add docs * bump python version and fix unit tests * test array types * remove comment * better python map * update `moduleDirectory` * simplify intiilization\ * use `ConfiguredAirbyteCatalog` in test rather than custom dict class * Tests passing by using deterministic time * Bump birthdays * Update airbyte-integrations/connectors/source-faker/integration_tests/acceptance.py Co-authored-by: George Claireaux <[email protected]> * remove bootstrap and stronger types * better incremental support * fixup un-used imports * bump to test codecov * Add connector to medatata files Co-authored-by: George Claireaux <[email protected]>
What
Adds a Source Connection that uses the Faker Python library to generate e-commerce-like user data for testing.
🚨 User Impact 🚨
None! A new connector appears.
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 hereTests
Unit
Integration