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

Add connector doris #31

Merged
merged 7 commits into from Oct 25, 2022
Merged

Add connector doris #31

merged 7 commits into from Oct 25, 2022

Conversation

BlockLiu
Copy link
Collaborator

Signed-off-by: Peng Liu 96pengpeng@gmail.com

Pre-Checklist

Note: Please complete ALL items in the following checklist.

  • I have read through the CONTRIBUTING.md documentation.
  • My code has the necessary comments and documentation (if needed).
  • I have added relevant tests.

Purpose

Add connectors for doris.

Approaches

  • Use stream load to achive doris writer.

Related Issues

N/A

New Behavior (screenshots if needed)

N/A

@@ -47,4 +52,8 @@ public interface FakeReaderOptions extends ReaderOptions.BaseReaderOptions {
ConfigOption<Boolean> USE_BITSAIL_TYPE =
key(READER_PREFIX + "use_bitsail_type")
.defaultValue(true);

ConfigOption<List<Map<String, String>>> FIXED_COLUMNS =
key(READER_PREFIX + "fixed_columns")
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is the meaning of fixed_columns?

Copy link
Collaborator Author

@BlockLiu BlockLiu Oct 25, 2022

Choose a reason for hiding this comment

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

Means the column(s) defined here has fixed value.
Format is:
[ { "name": "column_name", "fixed_value": "a value" } ]

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need this option because we want some fixed value columns sometimes. For example in doris connector test, the FakeSource needs to produce records with the same partition value(s).

Already add comment to this option.

.defaultValue("root");

ConfigOption<String> PASSWORD =
key(WRITER_PREFIX + "password")
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this field being printed anywhere in the log?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No.

public class DorisSinkITCase {

@Test
public void test() throws Exception {
Copy link
Collaborator

Choose a reason for hiding this comment

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

No doris container needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

  1. This test ran in BOE env, so I added @Ignore above the class.
  2. The reason using boe is that I cannot find doris test container. But I do find an issue using docker-compose to run doris.

I've add an issue to make the test container.

Copy link
Collaborator

@garyli1019 garyli1019 left a comment

Choose a reason for hiding this comment

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

LGTM

@garyli1019 garyli1019 merged commit 8e0deae into master Oct 25, 2022
@garyli1019 garyli1019 deleted the add-connector-doris branch October 25, 2022 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants