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

🎉 New Destination: Apache Doris #17884

Merged
merged 6 commits into from
Nov 15, 2022
Merged

Conversation

catpineapple
Copy link
Contributor

@catpineapple catpineapple commented Oct 12, 2022

What

Add destination doris

How

destination-doris is a destination implemented based on Doris stream load,
It works as follows:
1: read stream and write a temp csv file.
2: make a http put request to pre-commit this csv file.
3: make a http request commit this transaction .

Recommended reading order

  1. DorisDestination.java
  2. DorisConsumer.java
  3. DorisStreamLoad.java

🚨 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

  • Community member? Grant edit access to maintainers (instructions)
  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
    • docs/integrations/README.md
    • airbyte-integrations/builds.md
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub by running the /publish command described here
  • After the connector is published, connector added to connector index as described here
  • Seed specs have been re-generated by building the platform and committing the changes to the seed spec files, as described here
Updating a connector

Community member or Airbyter

  • Grant edit access to maintainers (instructions)
  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
  • /test connector=connectors/<name> command is passing
  • New Connector version released on Dockerhub and connector version bumped by running the /publish command described here
Connector Generator
  • Issue acceptance criteria met
  • PR name follows PR naming conventions
  • If adding a new generator, add it to the list of scaffold modules being tested
  • The generator test modules (all connectors with -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
  • Documentation which references the generator is updated as needed

Tests

Unit

Put your unit tests output here.

Integration image
Acceptance

Put your acceptance tests output here.

@github-actions github-actions bot added area/connectors Connector related issues area/documentation Improvements or additions to documentation labels Oct 12, 2022
@sajarin sajarin added internal team/destinations Destinations team's backlog labels Oct 12, 2022
@sajarin sajarin changed the title Add a new destination : destination doris 🎉 New Destination: Doris Oct 12, 2022
@marcosmarxm marcosmarxm changed the title 🎉 New Destination: Doris 🎉 New Destination: Apache Doris Oct 12, 2022
@marcosmarxm
Copy link
Member

@catpineapple how are you running the integration tests? do you have a local Apache Doris running? Can you add the setup to use a docker container?

@catpineapple
Copy link
Contributor Author

  1. build this docker image :airbyte/destination-doris:dev , then add this destination at localhost:8000 -> settings -> destinations -> +new connecter.
  2. installed an apache doris (1be+1fe). and create target database and tables.
  3. New connection: make a sources read File(csv) ,and make a doris destination ( settings: Host,Port,Database,user,password).

image

  1. run task,sync data.

image

@marcosmarxm
Copy link
Member

Can you add the setup of docker container to automate tests? Doing manual tests aren't viable.

@harshithmullapudi
Copy link
Contributor

Hey @marcosmarxm did you mean add the creation of database in the testing suite in itself?

@marcosmarxm
Copy link
Member

Yes.

@marcosmarxm
Copy link
Member

  1. build this docker image :airbyte/destination-doris:dev , then add this destination at localhost:8000 -> settings -> destinations -> +new connecter.
  2. installed an apache doris (1be+1fe). and create target database and tables.
  3. New connection: make a sources read File(csv) ,and make a doris destination ( settings: Host,Port,Database,user,password).
image
  1. run task,sync data.
image

Can you add a bootstrap.md how to do this process? I don't have knowledge about Apache Doris and setup the tool is not trivial. We must have this documentation to show people how to be able to test locally and probably improve in the future.

@marcosmarxm
Copy link
Member

@catpineapple can you check Yugabytedb destination implementation. It uses a docker-compose setup to spin-up containers to run tests automatically. Let me know what do you think about implementing it for Apache Doris.

@catpineapple
Copy link
Contributor Author

Is there any documentation to guide me to do this, I don't quite understand what kind of test this is. @marcosmarxm

@catpineapple
Copy link
Contributor Author

@catpineapple can you check Yugabytedb destination implementation. It uses a docker-compose setup to spin-up containers to run tests automatically. Let me know what do you think about implementing it for Apache Doris.

Sorry for my foolish, please list as many areas as possible that I need to improve, the current way is too inefficient @marcosmarxm

@marcosmarxm
Copy link
Member

marcosmarxm commented Nov 4, 2022

Hello! Your PR is approved but didn't have the time to publish and merge it this week. As you can check in Chris' comment all PRs submitted before 2-nov are eligible to win the prize. I'll be out of the office on Friday and return Monday to start publishing your contribution. Any question you can send a message in #hacktoberfest-2022 channel in Airbyte's Slack.

Have a good weekend and thank you for this amazing contribution for Hacktoberfest 🎉

@catpineapple
Copy link
Contributor Author

catpineapple commented Nov 11, 2022

@marcosmarxm hi,I would like to inquire about the merge progress of this pull request
and Have a nice weekend

@marcosmarxm
Copy link
Member

marcosmarxm commented Nov 14, 2022

/publish connector=connectors/destination-doris run-tests=false

🕑 Publishing the following connectors:
connectors/destination-doris
https://github.com/airbytehq/airbyte/actions/runs/3466155872


Connector Did it publish? Were definitions generated?
connectors/destination-doris

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

Copy link
Member

@marcosmarxm marcosmarxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @catpineapple sorry the delay to merge this amazing contribution :)

@marcosmarxm marcosmarxm merged commit 241cf4a into airbytehq:master Nov 15, 2022
@RealChrisSean RealChrisSean added the python Pull requests that update Python code label Nov 15, 2022
@RealChrisSean
Copy link

Hello @catpineapple ! Can you please provide the best email to contact you about payouts. Thank you!

@catpineapple
Copy link
Contributor Author

catpineapple commented Nov 18, 2022

Hello @catpineapple ! Can you please provide the best email to contact you about payouts. Thank you!

@RealChrisSean my email is 1391869588@qq.com

@catpineapple catpineapple deleted the add_doris branch December 1, 2022 03:48
akashkulk pushed a commit that referenced this pull request Dec 2, 2022
* first commit

* normalized code and integration test

* add bootstrap.md

* add doris to destination def

* auto-bump connector version

* format files

Co-authored-by: marcosmarxm <marcosmarxm@gmail.com>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
@catpineapple
Copy link
Contributor Author

catpineapple commented Nov 22, 2023

Hello @catpineapple ! Can you please provide the best email to contact you about payouts. Thank you!

hi, @RealChrisSean I remembered this incident recently, is there any further information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation community connectors/destination/doris hacktober internal python Pull requests that update Python code team/destinations Destinations team's backlog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants