-
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
🎉 Destination Weaviate: Support any string based ID and fix issues with additionalProperties #22527
🎉 Destination Weaviate: Support any string based ID and fix issues with additionalProperties #22527
Conversation
5f93dd3
to
555ae3a
Compare
be8f724
to
00aad30
Compare
rebased with master |
/test connector=connectors/destination-weaviate
Build PassedTest summary info:
|
@samos123 new QA tests are failing because the connector doesn't have an icon. do you mind to add it? |
I don't know how to add the icon and there doesn't seem to be any docs on how to add an icon: #20864 Could we merge without icon? or could you tell me the steps to add one? |
after skimming through a bunch of source code finnally found how to add the icon I think? Please review again. |
aa2bca4
to
aecee60
Compare
@Upmitt Could you please have a look here to check if the connector icon is in correct shape for what we need, and if not provide a new one please. |
/test connector=connectors/destination-weaviate
Build PassedTest summary info:
|
@samos123 I'll finish tomorrow the reviewing process. Tests are good thanks for that. |
@samos123 can you fix the errors? |
* Previously string based IDs that weren't convertable to hex would throw an exception. This fixes that issue by converting strings to 128 bit integer and converting the md5 hex into a UUID * Update Weaviate to 1.17.3
This seems to happen when records sometimes don't contain all the properties that are defined in the schema. This was the error observed by a user connecting Slack <> Weaviate: property 'reactions': invalid dataType: dataType must have at least one element, class 'Threads' not present in schema"
be4b76e
to
ef43e5a
Compare
@marcosmarxm I've fixed the flake tests, sorry about that. Could you please give it another review? I also rebased with latest master |
/publish connector=connectors/destination-weaviate
if you have connectors that successfully published but failed definition generation, follow step 4 here |
/publish connector=connectors/destination-weaviate
if you have connectors that successfully published but failed definition generation, follow step 4 here |
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.
Thanks for the contribtuion @samos123 sorry the long delay to publish and merge it.
…th additionalProperties (airbytehq#22527) * Support any string based ID * Previously string based IDs that weren't convertable to hex would throw an exception. This fixes that issue by converting strings to 128 bit integer and converting the md5 hex into a UUID * Update Weaviate to 1.17.3 * Fix issue with arrays of no data type Closes airbytehq#22530 * add more testing coverage * fix error where dataType wasn't set in weaviate This seems to happen when records sometimes don't contain all the properties that are defined in the schema. This was the error observed by a user connecting Slack <> Weaviate: property 'reactions': invalid dataType: dataType must have at least one element, class 'Threads' not present in schema" * add test case for additionalProperties * Support additionalProps of object and array of obj * Update changelog * add weaviate icon * fix flake tests * add commit * make build m1 work * make build m1 work * auto-bump connector version --------- Co-authored-by: marcosmarxm <marcosmarxm@gmail.com> Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com> Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com>
What
How
Convert a string to md5, then use the hex of the md5 to generate a UUID from a string.
Create a json string of uknown array type
Create json string for additional props of type object and type array of objects
🚨 User Impact 🚨
This fixes issues with data sources that have IDs like
some string ID that isn't hex, uuid, or integer
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/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 changes